aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-08-30 18:08:08 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-08-30 18:08:08 +0100
commit6032be3fadc6056c7171a492ba456b4374d0a966 (patch)
treef28eaa6a18ad6b8720994332de503ca85830433d
parent9c7799903ccf5551df496b7a57e564808089ed30 (diff)
remove redundant config and code relating to front page search examples (relates to issue #153)
-rw-r--r--app/controllers/general_controller.rb4
-rw-r--r--config/general.yml-example3
2 files changed, 0 insertions, 7 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb
index 2d0527d3a..1ddf3acff 100644
--- a/app/controllers/general_controller.rb
+++ b/app/controllers/general_controller.rb
@@ -45,10 +45,6 @@ class GeneralController < ApplicationController
:joins => :translations)
end
end
- @search_examples = MySociety::Config.get('FRONTPAGE_SEARCH_EXAMPLES', '').split(/\s*;\s*/)
- if @search_examples.empty?
- @search_examples = @popular_bodies.map { |body| body.name }
- end
# Get some successful requests #
begin
query = 'variety:response (status:successful OR status:partially_successful)'
diff --git a/config/general.yml-example b/config/general.yml-example
index ec66767df..48e8523ef 100644
--- a/config/general.yml-example
+++ b/config/general.yml-example
@@ -31,9 +31,6 @@ REPLY_VERY_LATE_AFTER_DAYS: 40
# We give some types of authority like schools a bit longer than everyone else
SPECIAL_REPLY_VERY_LATE_AFTER_DAYS: 60
-# example searches for the home page, semicolon delimited.
-FRONTPAGE_SEARCH_EXAMPLES: 'Geraldine Quango; Department for Humpadinking'
-
# example public bodies for the home page, semicolon delimited - short_names
FRONTPAGE_PUBLICBODY_EXAMPLES: 'tgq'