summaryrefslogtreecommitdiff
path: root/pywal
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-06-27 01:15:20 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-06-27 01:15:20 +1000
commit793bf3d119de46fbeb822c40a838cd070b8a5aff (patch)
tree3a17c858aa6e3506a01ea6f85030e58580d29eb5 /pywal
parentc90be029e5a4a049f828167a54741e3ae481f1d6 (diff)
General: Remove unused function.
Diffstat (limited to 'pywal')
-rwxr-xr-xpywal/set_colors.py4
-rwxr-xr-xpywal/util.py5
2 files changed, 2 insertions, 7 deletions
diff --git a/pywal/set_colors.py b/pywal/set_colors.py
index 810e2d8..05b217c 100755
--- a/pywal/set_colors.py
+++ b/pywal/set_colors.py
@@ -45,7 +45,7 @@ def send_sequences(colors, vte):
sequences.append(set_special(14, colors[0]))
# Set a blank color that isn"t affected by bold highlighting.
- sequences.append(set_special(66, colors[0]))
+ sequences.append(set_color(66, colors[0]))
# This escape sequence doesn"t work in VTE terminals.
if not vte:
@@ -75,6 +75,6 @@ def reload_colors(vte):
sequences = re.sub(r"\]708;\#.{6}", "", sequences)
# Make the terminal interpret escape sequences.
- print(util.fix_escape(sequences), end="")
+ print(sequences, end="")
exit(0)
diff --git a/pywal/util.py b/pywal/util.py
index 3990fbd..bc385d9 100755
--- a/pywal/util.py
+++ b/pywal/util.py
@@ -28,11 +28,6 @@ def hex_to_rgb(color):
return f"{red},{green},{blue}"
-def fix_escape(string):
- """Decode a string."""
- return bytes(string, "utf-8").decode("unicode_escape")
-
-
def disown(*cmd):
"""Call a system command in the background,
disown it and hide it's output."""