summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-07-21 19:32:35 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-07-21 19:32:35 +0200
commit7811520a30657e2bc98873f296ae1f8fcff51dc0 (patch)
treea77f74d7665f96ab9ad5f5c5346c107d3b3162ed
parentfa20c21ec26358cdba769f3b52e859ac685c2b0c (diff)
Stations: Remove get_latlon_by_name (no longer needed)2.7.9
-rw-r--r--lib/Travelynx/Model/Stations.pm14
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 ) = @_;