summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-03-01 14:20:25 +0100
committerhut <hut@lavabit.com>2013-03-01 14:20:25 +0100
commit102cc74ddb8f901f5c377916c82593d837726367 (patch)
treeaa4dc84689d46e5e73d8986e2e4897a9e8a448dc
parent146f51d6901bceac5b6c6447d967867948614268 (diff)
downloadranger-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"
-rw-r--r--ranger/gui/color.py6
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