summaryrefslogtreecommitdiff
path: root/lib/Travel
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-10-19 21:36:34 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-10-19 21:36:34 +0200
commit6c328434461e9a5bb0832256ffc429f333ee2282 (patch)
treefdb32a71a0c59bce6500bcb6d9c1ce5916747932 /lib/Travel
parenta6cb8288db8b5976c8598f65ec2c3f5ebde2ac3d (diff)
Journey: remove countdown accessors
Diffstat (limited to 'lib/Travel')
-rw-r--r--lib/Travel/Status/DE/HAFAS/Journey.pm30
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm
index 8a541b3..73de563 100644
--- a/lib/Travel/Status/DE/HAFAS/Journey.pm
+++ b/lib/Travel/Status/DE/HAFAS/Journey.pm
@@ -191,26 +191,6 @@ sub new {
return $ref;
}
-sub countdown {
- my ($self) = @_;
-
- $self->{countdown}
- //= $self->datetime->subtract_datetime( $self->{datetime_now} )
- ->in_units('minutes');
-
- return $self->{countdown};
-}
-
-sub countdown_sec {
- my ($self) = @_;
-
- $self->{countdown_sec}
- //= $self->datetime->subtract_datetime( $self->{datetime_now} )
- ->in_units('seconds');
-
- return $self->{countdown_sec};
-}
-
sub line {
my ($self) = @_;
@@ -372,16 +352,6 @@ the platform, time, route and more.
=over
-=item $result->countdown
-
-Difference between the time Travel::Status::DE::HAFAS->results
-was called first and the arrival/departure time, in minutes.
-
-=item $result->countdown_sec
-
-Difference between the time Travel::Status::DE::HAFAS->results
-was called first and the arrival/departure time, in seconds.
-
=item $result->date
Arrival/Departure date in "dd.mm.yyyy" format.