diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-10-16 10:09:22 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-10-16 10:09:22 +0200 |
commit | f33834b27901cfdd554ed6da66ffe3407a3dba79 (patch) | |
tree | 9fdae1d126ff8615bc8873121588dbbf98f362bd /index.pl | |
parent | a53cdb1324436d19bb5b817fa9d2153f8149d4d6 (diff) |
remove old (now unused) route code
Diffstat (limited to 'index.pl')
-rw-r--r-- | index.pl | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -371,11 +371,8 @@ sub handle_request { my $platform = ( split( / /, $result->platform ) )[0]; my $line = $result->line; my $delay = $result->delay; - if ( $via and $result->can('route') ) { - my @route = $result->route; - if ( $result->isa('Travel::Status::DE::IRIS::Result') ) { - @route = $result->route_post; - } + if ( $via and $result->can('route_post') ) { + my @route = $result->route_post; if ( not( List::MoreUtils::any { m{$via}i } @route ) ) { next; } |