# HG changeset patch # User Emmanuel Gil Peyrot # Date 1427848134 -7200 # Node ID e5361b74b9ad75895b2b8a370b662d24986e76cc # Parent 39874a722b7620b08990f8c97256acdbdf23cb74 Remove 3d scaling code for matrix, as it isn’t used anywhere in the codebase. diff --git a/pytouhou/utils/matrix.pxd b/pytouhou/utils/matrix.pxd --- a/pytouhou/utils/matrix.pxd +++ b/pytouhou/utils/matrix.pxd @@ -9,7 +9,6 @@ cdef Matrix *new_identity() nogil cdef void mul(Matrix *mat1, Matrix *mat2) nogil cdef void flip(Matrix *mat) nogil -cdef void scale(Matrix *mat, float x, float y, float z) nogil cdef void scale2d(Matrix *mat, float x, float y) nogil cdef void translate(Matrix *mat, float[3] offset) nogil cdef void translate2d(Matrix *mat, float x, float y) nogil diff --git a/pytouhou/utils/matrix.pyx b/pytouhou/utils/matrix.pyx --- 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 = 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 = mat for i in range(4):