summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-04-13 19:04:56 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-04-13 19:04:56 +0200
commit975314953acc5780760c5247f3d9c15d49d0c692 (patch)
treed9fd99ec4360baa973c8a3af021774d3bcebeb6d /lib
parent80ba6df854cd6467272200c2a41d7eab48803e25 (diff)
station name: remove ÖBB workaround (fixed in HAFAS 6.02)
Diffstat (limited to 'lib')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 896554d..54390d6 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -518,19 +518,6 @@ sub handle_request {
( $status->station ? $status->station->{name} : $station ),
};
- # Travel::Status::DE::HAFAS mis-detects ÖBB station names
- if ( $hafas
- and $hafas eq 'ÖBB'
- and @{ $status->station->{names} // [] } > 1 )
- {
- $data->{station_name} = $station;
- }
- elsif ( $status->station and $status->station->{names} ) {
- $data->{station_name}
- = List::Util::reduce { length($a) < length($b) ? $a : $b }
- @{ $status->station->{names} };
- }
-
if ( not @{ $data->{results} } and $template eq 'json' ) {
$self->handle_no_results_json( $station, $data, $api_version );
return;