Remove unused provider locale methods

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Tanguy Mazé
2025-11-21 00:32:01 +01:00
parent addc1a2118
commit 6a85f9a439
2 changed files with 0 additions and 23 deletions

View File

@@ -614,23 +614,6 @@ class ConfigManager:
self.config.__setattr__(exclusion_type, config_item)
self._update_config_file()
def set_provider_locale(self, provider: str, locale: str) -> None:
provider_locales = self.config.METADATA_PROVIDER_LOCALES
provider_locales[provider] = locale
self.config.METADATA_PROVIDER_LOCALES = provider_locales
self._update_config_file()
def remove_provider_locale(self, provider: str) -> None:
provider_locales = self.config.METADATA_PROVIDER_LOCALES
try:
del provider_locales[provider]
except KeyError:
pass
self.config.METADATA_PROVIDER_LOCALES = provider_locales
self._update_config_file()
def update_provider_locales(self, locales: dict[str, str]) -> None:
self.config.METADATA_PROVIDER_LOCALES = locales
self._update_config_file()

View File

@@ -78,12 +78,6 @@ export default defineStore("config", {
isExclusionType(type: string): type is ExclusionTypes {
return Object.keys(this.config).includes(type);
},
setProviderLocale(provider: string, locale: string) {
this.config.METADATA_PROVIDER_LOCALES[provider] = locale;
},
removeProviderLocale(provider: string) {
delete this.config.METADATA_PROVIDER_LOCALES[provider];
},
getEJSCoreOptions(core: string | null): Record<string, string | boolean> {
const defaultOptions = this.config.EJS_SETTINGS["default"] || {};
if (!core) return defaultOptions;