Stations: Remove get_latlon_by_name (no longer needed)
This commit is contained in:
parent
fa20c21ec2
commit
7811520a30
1 changed files with 0 additions and 14 deletions
|
@ -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 ) = @_;
|
||||
|
|
Loading…
Reference in a new issue