aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-08-15 11:43:03 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-08-16 17:31:07 +0100
commit121dd72293ed676a88f71a448aa3653ee3474579 (patch)
tree3e97a7c6c529472282761773c1ac66b7a689daea
parent25f954a6a7701f897001f28efd17f9136b7b7c08 (diff)
Remove unused category_extras_json code.
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm1
-rw-r--r--templates/web/base/common_header_tags.html6
2 files changed, 0 insertions, 7 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 1eb5a8c2f..86026f8e6 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -643,7 +643,6 @@ sub setup_categories_and_bodies : Private {
$c->stash->{category_options} = \@category_options;
$c->stash->{category_extras} = \%category_extras;
$c->stash->{non_public_categories} = \%non_public_categories;
- $c->stash->{category_extras_json} = encode_json \%category_extras;
$c->stash->{extra_name_info} = $first_area->{id} == COUNCIL_ID_BROMLEY ? 1 : 0;
my @missing_details_bodies = grep { !$bodies_to_list{$_->id} } values %bodies;
diff --git a/templates/web/base/common_header_tags.html b/templates/web/base/common_header_tags.html
index cef93770f..ca087fc86 100644
--- a/templates/web/base/common_header_tags.html
+++ b/templates/web/base/common_header_tags.html
@@ -31,12 +31,6 @@
[% map_js %]
-[% IF category_extras_json && category_extras_json != '{}' %]
-<script type="text/javascript">
- category_extras = [% category_extras_json %];
-</script>
-[% END %]
-
[% IF robots %]
<meta name="robots" content="[% robots %]">
[% ELSIF c.config.STAGING_SITE %]