From a7efca1fa9601b4626157007f1ce0a68224e829f Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Wed, 12 Feb 2020 22:14:08 +0100 Subject: [PATCH] DEV: Remove unused "search help" --- .../discourse/controllers/search-help.js.es6 | 10 ---------- .../discourse/templates/modal/search-help.hbs | 6 ------ config/locales/client.en.yml | 10 ---------- 3 files changed, 26 deletions(-) delete mode 100644 app/assets/javascripts/discourse/controllers/search-help.js.es6 delete mode 100644 app/assets/javascripts/discourse/templates/modal/search-help.hbs 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: | -

Search with Google

-

-

-

- tagging: all_tags: "All Tags" other_tags: "Other Tags"