From 9590fab2b07b1f2f7b543779e0310f1a6b44ad73 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 6 Apr 2021 10:22:18 +0200 Subject: Remove support for RIS/HAFAS backend --- lib/DBInfoscreen.pm | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'lib/DBInfoscreen.pm') diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm index b9b850d..c0fa57b 100644 --- a/lib/DBInfoscreen.pm +++ b/lib/DBInfoscreen.pm @@ -12,20 +12,12 @@ use DBInfoscreen::Helper::Marudor; use DBInfoscreen::Helper::Wagonorder; use File::Slurp qw(read_file); use JSON; -use Travel::Status::DE::HAFAS; -use Travel::Status::DE::HAFAS::StopFinder; use Travel::Status::DE::IRIS::Stations; use utf8; no if $] >= 5.018, warnings => 'experimental::smartmatch'; -my %default = ( - backend => 'iris', - mode => 'app', - admode => 'deparr', -); - sub startup { my ($self) = @_; @@ -67,18 +59,6 @@ sub startup { } ); - $self->attr( - cache_hafas => sub { - my ($self) = @_; - return Cache::File->new( - cache_root => $ENV{DBFAKEDISPLAY_HAFAS_CACHE} - // '/tmp/dbf-hafas', - default_expires => '180 seconds', - lock_level => Cache::File::LOCK_LOCAL(), - ); - } - ); - $self->attr( cache_iris_main => sub { my ($self) = @_; -- cgit v1.2.3