summaryrefslogtreecommitdiffstats
path: root/libdimension-python/wrapper.pyx
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-11-07 15:23:46 -0500
committerTavian Barnes <tavianator@gmail.com>2011-11-07 15:23:46 -0500
commit35ba140e863bc516a2cda09df5ccd3782f2d3f3b (patch)
tree2c1a5a9a00816bd52ad2a7ebc2831b517ccf1b4d /libdimension-python/wrapper.pyx
parent3e40d9c7b75dec008beb6b4ecf71b60e8bae088d (diff)
downloaddimension-35ba140e863bc516a2cda09df5ccd3782f2d3f3b.tar.xz
Get rid of dmnsn_color_is_black().
Diffstat (limited to 'libdimension-python/wrapper.pyx')
-rw-r--r--libdimension-python/wrapper.pyx4
1 files changed, 0 insertions, 4 deletions
diff --git a/libdimension-python/wrapper.pyx b/libdimension-python/wrapper.pyx
index 5f2b755..5431e75 100644
--- a/libdimension-python/wrapper.pyx
+++ b/libdimension-python/wrapper.pyx
@@ -458,10 +458,6 @@ cdef class Color:
def __get__(self):
return self._sRGB.filter
- def __nonzero__(self):
- """Return whether a color is not black."""
- return not dmnsn_color_is_black(self._c)
-
def __add__(lhs, rhs):
return _sRGBColor(dmnsn_color_add(Color(lhs)._sRGB, Color(rhs)._sRGB))
def __mul__(lhs, rhs):