aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Council.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-04-23 15:40:54 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-04-23 15:40:54 +0100
commit4f4dd76967e1bff4be4e11a405a2438bfcd25de4 (patch)
tree91612efa34216288c1de66f5354325047677ad0f /perllib/FixMyStreet/App/Controller/Council.pm
parent03b77ccde074e1d3545ebfcc8589054d48146bf2 (diff)
Have a whole fake mapit (for #182) that works if MAPIT_URL is set accordingly.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Council.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Council.pm9
1 files changed, 0 insertions, 9 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Council.pm b/perllib/FixMyStreet/App/Controller/Council.pm
index b488346f8..1d801c292 100644
--- a/perllib/FixMyStreet/App/Controller/Council.pm
+++ b/perllib/FixMyStreet/App/Controller/Council.pm
@@ -38,15 +38,6 @@ there are no councils then return false.
sub load_and_check_councils : Private {
my ( $self, $c ) = @_;
- # If no mapit is set up, let it through wherever
- unless ($c->config->{MAPIT_URL}) {
- my $area = { "name" => "Default Area", "type" => "ZZZ", "id" => 0 };
- $c->stash->{all_areas} = { 0 => $area };
- $c->stash->{all_councils} = { 0 => $area };
- $c->stash->{all_council_names} = [ 'Default Area' ];
- return 1;
- }
-
my $latitude = $c->stash->{latitude};
my $longitude = $c->stash->{longitude};