From 2c4dc3681a98aa01a51f963ccbebc4efd64af24d Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 27 Oct 2016 12:59:22 +0900 Subject: [PATCH] graphics: Remove u/v functions --- vertices.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/vertices.go b/vertices.go index 2369caca1..dd17a9331 100644 --- a/vertices.go +++ b/vertices.go @@ -38,14 +38,6 @@ func floatsToInt16s(xs ...float64) []int16 { return r } -func u(x, width2p int) int16 { - return int16(math.MaxInt16 * x / width2p) -} - -func v(y, height2p int) int16 { - return int16(math.MaxInt16 * y / height2p) -} - func vertices(parts ImageParts, width, height int, geo *GeoM) []int16 { // TODO: This function should be in graphics package? totalSize := graphics.QuadVertexSizeInBytes() / 2