changeset 8458:cecb8eeb07a2 stable

cleanup: remove unused code RcConf.update_config
author Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
date Thu, 10 Sep 2020 20:08:17 +0200
parents c91f5f36fb2b
children 143f3e9d7599
files kallithea/bin/base.py
diffstat 1 files changed, 0 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/bin/base.py	Thu Sep 10 20:17:18 2020 +0200
+++ b/kallithea/bin/base.py	Thu Sep 10 20:08:17 2020 +0200
@@ -137,23 +137,6 @@
         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