aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-03-31 13:53:00 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-03-31 13:53:00 +0100
commit6702f44f92e9c74fe6d2dd1c69c5418a15af178c (patch)
treeeb6c54b26fee9e15ed31e476f4ceadce256c908e /perllib/FixMyStreet/Cobrand/FixMyStreet.pm
parentca306d7bbb0bf0baa8d800ea1482b1faa3431022 (diff)
[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.
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/FixMyStreet.pm')
-rw-r--r--perllib/FixMyStreet/Cobrand/FixMyStreet.pm8
1 files changed, 0 insertions, 8 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
index 159f2f5db..99fe6da15 100644
--- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
+++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm
@@ -1,6 +1,5 @@
package FixMyStreet::Cobrand::FixMyStreet;
use base 'FixMyStreet::Cobrand::UK';
-use mySociety::Gaze;
use constant COUNCIL_ID_BROMLEY => 2482;
@@ -52,13 +51,6 @@ sub extra_contact_validation {
return %errors;
}
-sub get_country_for_ip_address {
- my $self = shift;
- my $ip = shift;
-
- return mySociety::Gaze::get_country_from_ip($ip);
-}
-
sub report_form_extras {
( { name => 'gender', required => 0 }, { name => 'variant', required => 0 } )
}