aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin.pm3
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm22
2 files changed, 0 insertions, 25 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin.pm b/perllib/FixMyStreet/App/Controller/Admin.pm
index de13a76de..790e22e8c 100644
--- a/perllib/FixMyStreet/App/Controller/Admin.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin.pm
@@ -266,9 +266,6 @@ sub bodies : Path('bodies') : Args(0) {
$c->forward( 'fetch_all_bodies' );
- # XXX For fixmystreet.com, need to exclude bodies that are covering London.
- # But soon, this means just don't have bodies covering London.
-
my $contacts = $c->model('DB::Contact')->search(
undef,
{
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 5021d90e0..ee643a03a 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -74,7 +74,6 @@ partial
=cut
-use constant COUNCIL_ID_BARNET => 2489;
use constant COUNCIL_ID_BROMLEY => 2482;
sub report_new : Path : Args(0) {
@@ -624,18 +623,6 @@ sub setup_categories_and_bodies : Private {
_('Empty public building - school, hospital, etc.')
);
- } elsif ($first_area->{id} != COUNCIL_ID_BROMLEY
- && $first_area->{id} != COUNCIL_ID_BARNET
- && $first_area->{type} eq 'LBO') {
-
- $bodies_to_list{ $first_body->id } = 1;
- my @local_categories;
- @local_categories = sort keys %{ Utils::london_categories() };
- @category_options = (
- _('-- Pick a category --'),
- @local_categories
- );
-
} else {
# keysort does not appear to obey locale so use strcoll (see i18n.t)
@@ -851,15 +838,6 @@ sub process_report : Private {
$report->extra( \%extra );
}
- } elsif ($first_area->{id} != COUNCIL_ID_BROMLEY
- && $first_area->{id} != COUNCIL_ID_BARNET
- && $first_area->{type} eq 'LBO') {
-
- unless ( Utils::london_categories()->{ $report->category } ) {
- $c->stash->{field_errors}->{category} = _('Please choose a category');
- }
- $report->bodies_str( $first_body->id );
-
} elsif ( $report->category ) {
# FIXME All contacts were fetched in setup_categories_and_bodies,