graphics: Refactoring: Remove unneeded function

This commit is contained in:
Hajime Hoshi 2016-06-13 00:01:01 +09:00
parent a1fbf2cd2d
commit 3f18096e95

View File

@ -434,14 +434,6 @@ func NewImageFromImage(source image.Image, filter Filter) (*Image, error) {
} }
func newImageWithZeroFramebuffer(width, height int) (*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() imageM.Lock()
defer imageM.Unlock() defer imageM.Unlock()
i, err := graphics.NewZeroFramebufferImage(width, height) i, err := graphics.NewZeroFramebufferImage(width, height)