diff pytouhou/utils/matrix.pyx @ 620:e5361b74b9ad

Remove 3d scaling code for matrix, as it isn’t used anywhere in the codebase.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 01 Apr 2015 02:28:54 +0200
parents 560b45a7d014
children
line wrap: on
line diff
--- a/pytouhou/utils/matrix.pyx
+++ b/pytouhou/utils/matrix.pyx
@@ -55,19 +55,6 @@ cdef void flip(Matrix *mat) nogil:
         data[i] = -data[i]
 
 
-cdef void scale(Matrix *mat, float x, float y, float z) nogil:
-    cdef float coordinate[3]
-
-    data = <float*>mat
-    coordinate[0] = x
-    coordinate[1] = y
-    coordinate[2] = z
-
-    for i in range(3):
-        for j in range(4):
-            data[4*i+j] *= coordinate[i]
-
-
 cdef void scale2d(Matrix *mat, float x, float y) nogil:
     data = <float*>mat
     for i in range(4):