From 0bf70c105ec6cc5b6cfa3c4710c01fa78b968c54 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 26 Jun 2017 14:41:57 +1000 Subject: General: Cleanup --- pywal/export.py | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'pywal/export.py') diff --git a/pywal/export.py b/pywal/export.py index a153f7f..bfe3974 100644 --- a/pywal/export.py +++ b/pywal/export.py @@ -1,8 +1,6 @@ """ Export colors in various formats. """ -import pathlib -import re import shutil import subprocess @@ -17,23 +15,6 @@ def save_colors(colors, export_file, message): print(f"export: exported {message}.") -def reload_colors(vte): - """Reload colors.""" - sequence_file = pathlib.Path(s.CACHE_DIR / "sequences") - - if sequence_file.is_file(): - sequences = "".join(util.read_file(sequence_file)) - - # If vte mode was used, remove the problem sequence. - if vte: - sequences = re.sub(r"\]708;\#.{6}", "", sequences) - - # Make the terminal interpret escape sequences. - print(util.fix_escape(sequences), end="") - - exit(0) - - def reload_xrdb(export_file): """Merge the colors into the X db so new terminals use them.""" if shutil.which("xrdb"): -- cgit v1.2.3