diff --git a/image.go b/image.go index 6aedbc8bd..99bee4312 100644 --- a/image.go +++ b/image.go @@ -434,14 +434,6 @@ func NewImageFromImage(source image.Image, filter Filter) (*Image, error) { } func newImageWithZeroFramebuffer(width, height int) (*Image, error) { - img, err := newImageWithZeroFramebufferImpl(width, height) - if err != nil { - return nil, err - } - return img, nil -} - -func newImageWithZeroFramebufferImpl(width, height int) (*Image, error) { imageM.Lock() defer imageM.Unlock() i, err := graphics.NewZeroFramebufferImage(width, height)