mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 17:32:02 +01:00
graphics: Refactoring: Remove unneeded function
This commit is contained in:
parent
a1fbf2cd2d
commit
3f18096e95
8
image.go
8
image.go
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user