diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-07-28 21:34:45 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-07-28 21:34:45 -0600 |
commit | 250c28ccdef5f238677b34f21ec7fab06588a127 (patch) | |
tree | 7aa115cf5d7c4119bedafc31703cd4a0a11d9d64 /libdimension-python | |
parent | 275c2542c4e414ffe01558cfca2445dcad6bbd29 (diff) | |
download | dimension-250c28ccdef5f238677b34f21ec7fab06588a127.tar.xz |
Make the checker pattern a singleton.
Diffstat (limited to 'libdimension-python')
-rw-r--r-- | libdimension-python/dimension.pxd | 2 | ||||
-rw-r--r-- | libdimension-python/dimension.pyx | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/libdimension-python/dimension.pxd b/libdimension-python/dimension.pxd index da4ac12..cda2c59 100644 --- a/libdimension-python/dimension.pxd +++ b/libdimension-python/dimension.pxd @@ -198,7 +198,7 @@ cdef extern from "../libdimension/dimension.h": ############ ctypedef struct dmnsn_pattern: - dmnsn_matrix trans + pass void dmnsn_delete_pattern(dmnsn_pattern *pattern) diff --git a/libdimension-python/dimension.pyx b/libdimension-python/dimension.pyx index 2cde396..3fd64d1 100644 --- a/libdimension-python/dimension.pyx +++ b/libdimension-python/dimension.pyx @@ -543,14 +543,6 @@ cdef class Pattern: def __dealloc__(self): dmnsn_delete_pattern(self._pattern) - def transform(self, Matrix trans not None): - """Transform a pattern.""" - if self._pattern == NULL: - raise TypeError("attempt to transform base Pattern") - - self._pattern.trans = dmnsn_matrix_mul(trans._m, self._pattern.trans) - return self - cdef class Checker(Pattern): """A checkerboard pattern.""" def __init__(self): |