Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
General: Remove unused function.
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Jun 26, 2017
1 parent c90be02 commit 793bf3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pywal/set_colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
5 changes: 0 additions & 5 deletions pywal/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 793bf3d

Please sign in to comment.