diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-07-21 19:32:35 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-07-21 19:32:35 +0200 |
commit | 7811520a30657e2bc98873f296ae1f8fcff51dc0 (patch) | |
tree | a77f74d7665f96ab9ad5f5c5346c107d3b3162ed /lib/Travelynx | |
parent | fa20c21ec26358cdba769f3b52e859ac685c2b0c (diff) |
Stations: Remove get_latlon_by_name (no longer needed)2.7.9
Diffstat (limited to 'lib/Travelynx')
-rw-r--r-- | lib/Travelynx/Model/Stations.pm | 14 |
1 files changed, 0 insertions, 14 deletions
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 @@ -129,20 +129,6 @@ sub get_by_evas { } # 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 ) = @_; |