From 92e5bc31dc10eb03c379cfbf9980c8de0b03a180 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 5 Apr 2018 00:40:35 +0900 Subject: [PATCH] shareable: Refactoring --- internal/shareable/shareable.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/shareable/shareable.go b/internal/shareable/shareable.go index b933a0664..66da7e2cb 100644 --- a/internal/shareable/shareable.go +++ b/internal/shareable/shareable.go @@ -120,10 +120,6 @@ func (s *Image) Size() (width, height int) { func (s *Image) DrawImage(img *Image, sx0, sy0, sx1, sy1 int, geom *affine.GeoM, colorm *affine.ColorM, mode opengl.CompositeMode, filter graphics.Filter) { backendsM.Lock() defer backendsM.Unlock() - s.drawImage(img, sx0, sy0, sx1, sy1, geom, colorm, mode, filter) -} - -func (s *Image) drawImage(img *Image, sx0, sy0, sx1, sy1 int, geom *affine.GeoM, colorm *affine.ColorM, mode opengl.CompositeMode, filter graphics.Filter) { s.ensureNotShared() // Compare i and img after ensuring i is not shared, or