From 7ea4e19f588a1e86cca9ab92f0251007dcadb77b Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 26 Dec 2014 04:02:34 +0900 Subject: [PATCH] Remove methods IsIdentity --- colormatrix.go | 5 ----- colormatrix_test.go | 14 -------------- geometrymatrix.go | 5 ----- geometrymatrix_test.go | 9 --------- 4 files changed, 33 deletions(-) diff --git a/colormatrix.go b/colormatrix.go index eb75c541c..edbfd33e2 100644 --- a/colormatrix.go +++ b/colormatrix.go @@ -60,11 +60,6 @@ func (c *ColorMatrix) Concat(other ColorMatrix) { *c = result } -// IsIdentity returns a boolean indicating whether the color matrix is an identity. -func (c *ColorMatrix) IsIdentity() bool { - return isIdentity(c) -} - func (c *ColorMatrix) setElement(i, j int, element float64) { c.es[i][j] = element } diff --git a/colormatrix_test.go b/colormatrix_test.go index 3fc2b16d8..86837f362 100644 --- a/colormatrix_test.go +++ b/colormatrix_test.go @@ -13,17 +13,3 @@ // limitations under the License. package ebiten_test - -import ( - . "." - "testing" -) - -func TestColorIdentity(t *testing.T) { - m := NewColorMatrix() - got := m.IsIdentity() - want := true - if want != got { - t.Errorf("matrix.IsIdentity() = %t, want %t", got, want) - } -} diff --git a/geometrymatrix.go b/geometrymatrix.go index fccf5bdee..7c30059db 100644 --- a/geometrymatrix.go +++ b/geometrymatrix.go @@ -53,11 +53,6 @@ func (g *GeometryMatrix) Concat(other GeometryMatrix) { *g = result } -// IsIdentity returns a boolean indicating whether the geometry matrix is an identity. -func (g *GeometryMatrix) IsIdentity() bool { - return isIdentity(g) -} - func (g *GeometryMatrix) setElement(i, j int, element float64) { g.es[i][j] = element } diff --git a/geometrymatrix_test.go b/geometrymatrix_test.go index e49d5c9f5..5c38c7f46 100644 --- a/geometrymatrix_test.go +++ b/geometrymatrix_test.go @@ -19,15 +19,6 @@ import ( "testing" ) -func TestGeometryIdentity(t *testing.T) { - m := NewGeometryMatrix() - got := m.IsIdentity() - want := true - if want != got { - t.Errorf("matrix.IsIdentity() = %t, want %t", got, want) - } -} - func TestGeometryConcat(t *testing.T) { matrix1 := ScaleGeometry(2, 2) matrix2 := TranslateGeometry(1, 1)