X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/1f0393876d891d0e32a995d0bf7259cc6505afdc..d8c700bbb8b7bd992b9fe9b43de8a2f3d8e8587f:/tools/config/save.py diff --git a/tools/config/save.py b/tools/config/save.py index 67e25ea..54ee983 100644 --- a/tools/config/save.py +++ b/tools/config/save.py @@ -2,7 +2,6 @@ # SPDX-License-Identifier: GPL-3.0-or-later import os import logging -import tools.config def save(args, cfg): @@ -10,10 +9,3 @@ def save(args, cfg): os.makedirs(os.path.dirname(args.config), 0o700, True) with open(args.config, "w") as handle: cfg.write(handle) - -def save_session(cfg): - config_path = tools.config.session_defaults["config_path"] - logging.debug("Save session config: " + config_path) - os.makedirs(os.path.dirname(config_path), 0o700, True) - with open(config_path, "w") as handle: - cfg.write(handle)