diff options
author | hut <hut@lavabit.com> | 2013-03-01 14:20:25 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-03-01 14:20:25 +0100 |
commit | 102cc74ddb8f901f5c377916c82593d837726367 (patch) | |
tree | aa4dc84689d46e5e73d8986e2e4897a9e8a448dc /ranger | |
parent | 146f51d6901bceac5b6c6447d967867948614268 (diff) | |
download | ranger-102cc74ddb8f901f5c377916c82593d837726367.tar.gz |
gui.color: remove "remove_attr" function
What I didn't realize when I wrote the function "remove_attr" is that "remove_attr(value, attribute)" can be simply replaced with "value & ~attribute"
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/color.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ranger/gui/color.py b/ranger/gui/color.py index eec70661..6c73f99a 100644 --- a/ranger/gui/color.py +++ b/ranger/gui/color.py @@ -47,9 +47,3 @@ underline = curses.A_UNDERLINE invisible = curses.A_INVIS default_colors = (default, default, normal) - -def remove_attr(integer, attribute): - """Remove an attribute from an integer""" - if integer & attribute: - return integer ^ attribute - return integer |