From 35ba140e863bc516a2cda09df5ccd3782f2d3f3b Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 7 Nov 2011 15:23:46 -0500 Subject: Get rid of dmnsn_color_is_black(). --- libdimension-python/wrapper.pyx | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libdimension-python/wrapper.pyx') 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): -- cgit v1.2.3