diff options
author | Struan Donald <struan@exo.org.uk> | 2013-01-17 13:07:50 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-01-17 13:07:50 +0000 |
commit | 51e35b57b8ec89043ed7dab9bd14f0a1950a1ecb (patch) | |
tree | 5d44374a5914f919cd0f92a91712deca0a34f9d0 | |
parent | 51e2cb1945508d904e907cb4424cc2344c3fd96c (diff) |
remove redundant code accidentally left in :(
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Around.pm | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Around.pm b/perllib/FixMyStreet/App/Controller/Around.pm index cb5bd1e82..8f651fae2 100644 --- a/perllib/FixMyStreet/App/Controller/Around.pm +++ b/perllib/FixMyStreet/App/Controller/Around.pm @@ -294,20 +294,6 @@ sub location_autocomplete : Path('/ajax/geocode') { # disappear when it's the last choice being offered in the autocomplete. $c->stash->{allow_single_geocode_match_strings} = 1; return $self->_geocode( $c, $c->req->param('term') ); - - my ( $lat, $long, $suggestions ) = - FixMyStreet::Geocode::lookup( $c->req->param('term'), $c ); - my @addresses; - # $error doubles up to return multiple choices by being an array - if ( ref($suggestions) eq 'ARRAY' ) { - foreach (@$suggestions) { - push @addresses, decode_utf8($_->{address}); - } - } - my $body = JSON->new->utf8(1)->encode( - \@addresses - ); - $c->res->body($body); } sub location_lookup : Path('/ajax/lookup_location') { |