[Refactor] Remove multiple dead code (#47329)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user