From 19317bc1f33731393c3eab708082b3359ed34dd9 Mon Sep 17 00:00:00 2001 From: Leonel Date: Fri, 11 Dec 2015 14:09:07 -0200 Subject: [PATCH] removed useless initialization --- example/freetype/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/example/freetype/main.go b/example/freetype/main.go index af1049b..51c4962 100644 --- a/example/freetype/main.go +++ b/example/freetype/main.go @@ -103,7 +103,6 @@ func main() { var width, height int // Measure the text to calculate the minimum size of the image if *bound { - x := 0 pt := freetype.Pt(10, 10+int(c.PointToFixed(*size)>>6)) for _, s := range text { ptr, err := c.MeasureString(s, pt) @@ -112,7 +111,7 @@ func main() { return } pt.Y += c.PointToFixed(*size * *spacing) - x = int(ptr.X >> 6) + x := int(ptr.X >> 6) if x > width { width = x }