From 7811520a30657e2bc98873f296ae1f8fcff51dc0 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 21 Jul 2024 19:32:35 +0200 Subject: Stations: Remove get_latlon_by_name (no longer needed) --- lib/Travelynx/Model/Stations.pm | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'lib') diff --git a/lib/Travelynx/Model/Stations.pm b/lib/Travelynx/Model/Stations.pm index ac4019c..ad219e0 100644 --- a/lib/Travelynx/Model/Stations.pm +++ b/lib/Travelynx/Model/Stations.pm @@ -128,20 +128,6 @@ sub get_by_evas { return @ret; } -# Slow -sub get_latlon_by_name { - my ( $self, %opt ) = @_; - - my $db = $opt{db} // $self->{pg}->db; - - my %location; - my $res = $db->select( 'stations', [ 'name', 'lat', 'lon' ] ); - while ( my $row = $res->hash ) { - $location{ $row->{name} } = [ $row->{lat}, $row->{lon} ]; - } - return \%location; -} - # Slow sub get_by_name { my ( $self, $name, %opt ) = @_; -- cgit v1.2.3