Skip to content

Commit

Permalink
remove dead code (#15038)
Browse files Browse the repository at this point in the history
  • Loading branch information
yocalebo authored Nov 25, 2024
1 parent 06b0a21 commit ffb2512
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 43 deletions.
32 changes: 0 additions & 32 deletions src/middlewared/middlewared/i18n.py

This file was deleted.

1 change: 0 additions & 1 deletion src/middlewared/middlewared/plugins/system/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,4 @@ async def setup(middleware):
settings = await middleware.call('system.general.config')
middleware.logger.debug('Setting timezone to %r', settings['timezone'])
await middleware.call('core.environ_update', {'TZ': settings['timezone']})
await middleware.call('system.general.set_language')
await middleware.call('sysctl.set_zvol_volmode', 2)
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from middlewared.i18n import set_language
from middlewared.schema import accepts, Dict, returns
from middlewared.service import private, Service
from middlewared.service import Service


LANGUAGES = dict([
Expand Down Expand Up @@ -109,8 +108,3 @@ async def language_choices(self):
Returns language choices.
"""
return LANGUAGES

@private
def set_language(self):
language = self.middleware.call_sync('system.general.config')['language']
set_language(language)
3 changes: 0 additions & 3 deletions src/middlewared/middlewared/plugins/system_general/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,6 @@ async def do_update(self, data):
await self.middleware.call('service.reload', 'timeservices')
await self.middleware.call('service.restart', 'cron')

if config['language'] != new_config['language']:
await self.middleware.call('system.general.set_language')

if config['ds_auth'] != new_config['ds_auth']:
await self.middleware.call('etc.generate', 'pam_middleware')

Expand Down

0 comments on commit ffb2512

Please sign in to comment.