Stations: Remove get_latlon_by_name (no longer needed)

This commit is contained in:
Birte Kristina Friesel 2024-07-21 19:32:35 +02:00
parent fa20c21ec2
commit 7811520a30
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -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 ) = @_;