]> glassweightruler.freedombox.rocks Git - waydroid.git/blobdiff - tools/config/save.py
Remove unused python imports
[waydroid.git] / tools / config / save.py
index 67e25ea1f8377cec6677816d91160c9767dfab3f..54ee9834b70fd78903f5c9b9d16ffb5c750c0ad9 100644 (file)
@@ -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)