From 6702f44f92e9c74fe6d2dd1c69c5418a15af178c Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 31 Mar 2016 13:53:00 +0100 Subject: [fixmystreet.com] Move country lookup client side. There's no need for the IP->country lookup, only used in JavaScript to display a banner, to require a call to the FixMyStreet server. --- perllib/FixMyStreet/App/Controller/Location.pm | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'perllib/FixMyStreet/App/Controller/Location.pm') diff --git a/perllib/FixMyStreet/App/Controller/Location.pm b/perllib/FixMyStreet/App/Controller/Location.pm index 6def423ce..c457c8fce 100644 --- a/perllib/FixMyStreet/App/Controller/Location.pm +++ b/perllib/FixMyStreet/App/Controller/Location.pm @@ -134,22 +134,6 @@ sub check_location : Private { return 1; } -=head2 country_message - -Displays the country_message template, used for displaying a message to -people using the site from outside the host country. - -=cut - -sub country_message : Path('/country_message') : Args(0) { - my ( $self, $c ) = @_; - - # we do not want to cache this as we always want to check if displaying this - # is the right thing to do. - $c->res->header( 'Cache_Control' => 'max-age=0' ); - $c->stash->{template} = 'front/international_banner.html'; -} - # Utility function for if someone (rarely) enters a grid reference sub gridref_to_latlon { my ( $a, $b, $num ) = @_; -- cgit v1.2.3