Drop unused Config.load_json
MODIFY
plextraktsync/config.py
plextraktsync/config.py
@@ -127,14 +127,5 @@ def save(self):
else:
txt.write("{}=\n".format(key))
- @staticmethod
- def load_json(path):
- with open(path, "r") as fp:
- try:
- config = json.load(fp)
- except JSONDecodeError as e:
- raise RuntimeError(f"Unable to parse {path}: {e}")
- return config
-
CONFIG = Config()

Drop unused Config.load_json