[Refactor] Remove multiple dead code (#47329)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
Wentao Ye
2026-07-06 07:54:08 -07:00
committed by GitHub
parent 598d51153a
commit b1c6dba558
7 changed files with 0 additions and 186 deletions
-19
View File
@@ -162,13 +162,6 @@ class ConfigSet:
config_key,
)
def has_config(self, platform: str, config_key: CaseKey) -> bool:
platform = platform.lower()
platform_dict = self._configs.get(platform)
if platform_dict is None:
return False
return config_key in platform_dict
class ConfigManager:
"""File-level configuration management for Helion kernels (global singleton)."""
@@ -327,15 +320,3 @@ class ConfigManager:
logger.info("Saved config to: %s", platform_path)
return platform_path
def config_exists(
self,
kernel_name: str,
platform: str,
config_key: CaseKey,
) -> bool:
platform_data = self._load_platform_file(kernel_name, platform)
if not platform_data:
return False
target = dict(config_key)
return any(entry["key"] == target for entry in platform_data)