From 609d7b3ebc2ed0f190799da2565910cec7d79339 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 9 Mar 2023 19:10:08 +0100 Subject: remove unused journey_edit_mask attrs --- lib/Travelynx.pm | 16 ---------------- lib/Travelynx/Model/Journeys.pm | 11 ----------- 2 files changed, 27 deletions(-) diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 4474600..aae5746 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -159,22 +159,6 @@ sub startup { } ); - # TODO unused - $self->attr( - journey_edit_mask => sub { - return { - sched_departure => 0x0001, - real_departure => 0x0002, - from_station => 0x0004, - route => 0x0010, - is_cancelled => 0x0020, - sched_arrival => 0x0100, - real_arrival => 0x0200, - to_station => 0x0400, - }; - } - ); - $self->attr( coordinates_by_station => sub { my $legacy_names = $self->app->renamed_station; diff --git a/lib/Travelynx/Model/Journeys.pm b/lib/Travelynx/Model/Journeys.pm index 312910f..bf8c013 100755 --- a/lib/Travelynx/Model/Journeys.pm +++ b/lib/Travelynx/Model/Journeys.pm @@ -101,17 +101,6 @@ sub min_to_human { sub new { my ( $class, %opt ) = @_; - $opt{journey_edit_mask} = { - sched_departure => 0x0001, - real_departure => 0x0002, - from_station => 0x0004, - route => 0x0010, - is_cancelled => 0x0020, - sched_arrival => 0x0100, - real_arrival => 0x0200, - to_station => 0x0400, - }; - return bless( \%opt, $class ); } -- cgit v1.2.3