Skip to content
Snippets Groups Projects
Unverified Commit 7811520a authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Stations: Remove get_latlon_by_name (no longer needed)

parent fa20c21e
No related branches found
Tags 2.7.9
No related merge requests found
......@@ -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 ) = @_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment