diff options
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): |