mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 09:22:01 +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) {
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user