From 369e8a6fe9cf12a559a37ae13b8f0f4e59e12eff Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Sat, 7 Dec 2024 15:52:52 +0000 Subject: [PATCH] Cleanup: Remove unused-strings hack for _TINY string variants. --- .github/unused-strings.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.github/unused-strings.py b/.github/unused-strings.py index 527a938dc5..1ebb652982 100644 --- a/.github/unused-strings.py +++ b/.github/unused-strings.py @@ -39,7 +39,6 @@ def read_language_file(filename, strings_found, errors): skip = SkipType.NONE length = 0 common_prefix = "" - last_tiny_string = "" with open(filename) as fp: for line in fp.readlines(): @@ -114,17 +113,6 @@ def read_language_file(filename, strings_found, errors): name = line.split(":")[0].strip() strings_defined.append(name) - # If a string ends on _TINY or _SMALL, it can be the {TINY} variant. - # Check for this by some fuzzy matching. - if name.endswith(("_SMALL", "_TINY")): - last_tiny_string = name - elif last_tiny_string: - matching_name = "_".join(last_tiny_string.split("_")[:-1]) - if name == matching_name: - strings_found.add(last_tiny_string) - else: - last_tiny_string = "" - if skip == SkipType.EXTERNAL: strings_found.add(name) skip = SkipType.LENGTH