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
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -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 ) = @_;