From c9220de690f0081777cf43acb547f2b3818fd8fe Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 17 Jul 2021 19:37:22 +0200 Subject: [PATCH] [mod] drop unused setting option brand:twitter_url Signed-off-by: Markus Heiser --- docs/admin/engines/settings.rst | 3 --- searx/__init__.py | 5 ----- searx/settings_defaults.py | 1 - utils/brand.env | 1 - utils/build_env.py | 1 - 5 files changed, 11 deletions(-) diff --git a/docs/admin/engines/settings.rst b/docs/admin/engines/settings.rst index 1fe083a97..7335b9a2a 100644 --- a/docs/admin/engines/settings.rst +++ b/docs/admin/engines/settings.rst @@ -73,9 +73,6 @@ Global Settings ``wiki_url``: Link to your wiki (or ``false``) -``twitter_url``: - Link to your tweets (or ``false``) - ``server:`` ----------- diff --git a/searx/__init__.py b/searx/__init__.py index 55f6bb464..2b6a84124 100644 --- a/searx/__init__.py +++ b/searx/__init__.py @@ -96,9 +96,4 @@ class _brand_namespace: # pylint: disable=invalid-name def WIKI_URL(self): return self.get_val('brand', 'wiki_url') - @property - def TWITTER_URL(self): - return self.get_val('brand', 'twitter_url') - - brand = _brand_namespace() diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py index 05df33440..d034cb1cd 100644 --- a/searx/settings_defaults.py +++ b/searx/settings_defaults.py @@ -137,7 +137,6 @@ SCHEMA = { 'docs_url': SettingsValue(str, None), 'public_instances': SettingsValue(str, None), 'wiki_url': SettingsValue(str, None), - 'twitter_url': SettingsValue(str, None), }, 'search': { 'safe_search': SettingsValue((0,1,2), 0), diff --git a/utils/brand.env b/utils/brand.env index 9cc52051d..e0c670a01 100644 --- a/utils/brand.env +++ b/utils/brand.env @@ -6,4 +6,3 @@ export DOCS_URL='https://searxng.github.io/searxng' export PUBLIC_INSTANCES='https://searx.space' export CONTACT_URL='' export WIKI_URL='https://github.com/searxng/searxng/wiki' -export TWITTER_URL='' diff --git a/utils/build_env.py b/utils/build_env.py index 58d58d564..c52111e81 100644 --- a/utils/build_env.py +++ b/utils/build_env.py @@ -35,7 +35,6 @@ name_val = [ ('PUBLIC_INSTANCES' , _env('brand.public_instances', '')), ('CONTACT_URL' , _env('general.contact_url', '')), ('WIKI_URL' , _env('brand.wiki_url', '')), - ('TWITTER_URL' , _env('brand.twitter_url', '')), ] brand_env = 'utils' + sep + 'brand.env'