# HG changeset patch # User Thomas De Schampheleire # Date 2020-09-10 18:08:17 # Node ID cecb8eeb07a2400872ce34347ecc77ef12212942 # Parent c91f5f36fb2b2761adb810fbddd41773b07fee55 cleanup: remove unused code RcConf.update_config diff --git a/kallithea/bin/base.py b/kallithea/bin/base.py --- a/kallithea/bin/base.py +++ b/kallithea/bin/base.py @@ -137,23 +137,6 @@ class RcConf(object): else: sys.stdout.write('Created new config in %s\n' % self._conf_name) - def update_config(self, new_config): - """ - Reads the JSON config updates it's values with new_config and - saves it back as JSON dump - - :param new_config: - """ - config = {} - try: - with open(self._conf_name, 'rb') as conf: - config = ext_json.load(conf) - except IOError as e: - sys.stderr.write(str(e) + '\n') - - config.update(new_config) - self.make_config(config) - def load_config(self): """ Loads config from file and returns loaded JSON object