summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-07-27 09:26:34 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-07-27 10:13:15 +0200
commite31b06b686a73ea70caa26339c3496debc1b33ba (patch)
tree8b3ac13dda6e1168c438bc9957d668032ec5290e
parentb9ddd59c5b7daeabe4041d0e446a6572ba499942 (diff)
downloadsearxng-e31b06b686a73ea70caa26339c3496debc1b33ba.tar.gz
searxng-e31b06b686a73ea70caa26339c3496debc1b33ba.zip
[fix] remove unused code / `_STORAGE_UNIT_VALUE`
The `_STORAGE_UNIT_VALUE` dictionary is a left over from: - https://github.com/searxng/searxng/pull/3570 in this PR we removed the old implementations but forgot to delete this `_STORAGE_UNIT_VALUE`. Closes: https://github.com/searxng/searxng/pull/3672 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rw-r--r--searx/utils.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/searx/utils.py b/searx/utils.py
index 0c11ccc65..191161bde 100644
--- a/searx/utils.py
+++ b/searx/utils.py
@@ -44,16 +44,6 @@ _JS_QUOTE_KEYS_RE = re.compile(r'([\{\s,])(\w+)(:)')
_JS_VOID_RE = re.compile(r'void\s+[0-9]+|void\s*\([0-9]+\)')
_JS_DECIMAL_RE = re.compile(r":\s*\.")
-_STORAGE_UNIT_VALUE: Dict[str, int] = {
- 'TB': 1024 * 1024 * 1024 * 1024,
- 'GB': 1024 * 1024 * 1024,
- 'MB': 1024 * 1024,
- 'TiB': 1000 * 1000 * 1000 * 1000,
- 'GiB': 1000 * 1000 * 1000,
- 'MiB': 1000 * 1000,
- 'KiB': 1000,
-}
-
_XPATH_CACHE: Dict[str, XPath] = {}
_LANG_TO_LC_CACHE: Dict[str, Dict[str, str]] = {}