Skip to content

A platform for community discussion. Free, open, simple.

DEV: Remove unused "search help"

Gerhard Schlagera7efca1fa960
diff --git a/app/assets/javascripts/discourse/controllers/search-help.js.es6 b/app/assets/javascripts/discourse/controllers/search-help.js.es6
deleted file mode 100644
index 14753734803..00000000000
--- a/app/assets/javascripts/discourse/controllers/search-help.js.es6
+++ /dev/null
@@ -1,10 +0,0 @@
-import discourseComputed from "discourse-common/utils/decorators";
-import Controller from "@ember/controller";
-import ModalFunctionality from "discourse/mixins/modal-functionality";
-
-export default Controller.extend(ModalFunctionality, {
- @discourseComputed
- showGoogleSearch() {
- return !Discourse.SiteSettings.login_required;
- }
-});
diff --git a/app/assets/javascripts/discourse/templates/modal/search-help.hbs b/app/assets/javascripts/discourse/templates/modal/search-help.hbs
deleted file mode 100644
index 68c7cead8e2..00000000000
--- a/app/assets/javascripts/discourse/templates/modal/search-help.hbs
+++ /dev/null
@@ -1,6 +0,0 @@
-{{#d-modal-body id="search-help"}}
- {{{model}}}
- {{#if showGoogleSearch}}
- {{{i18n 'google_search'}}}
- {{/if}}
-{{/d-modal-body}}
diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml
index 2cb628e519a..408b32075d7 100644
--- a/config/locales/client.en.yml
+++ b/config/locales/client.en.yml
@@ -3085,16 +3085,6 @@ en:
posting:
name: Posting
- google_search: |
- <h3>Search with Google</h3>
- <p>
- <form action='//google.com/search' id='google-search' onsubmit="document.getElementById('google-query').value = 'site:' + window.location.host + ' ' + document.getElementById('user-query').value; return true;">
- <input type="text" id='user-query' value="">
- <input type='hidden' id='google-query' name="q">
- <button class="btn btn-primary">Google</button>
- </form>
- </p>
-
tagging:
all_tags: "All Tags"
other_tags: "Other Tags"