internal/buffered: remove unnecessary deferred functions

This commit is contained in:
Hajime Hoshi 2023-10-18 23:20:02 +09:00
parent 58847e023d
commit 3f1b7e78b8

View File

@ -59,18 +59,6 @@ func (i *Image) invalidatePixels() {
}
func (i *Image) MarkDisposed() {
i.invalidatePixels()
if maybeCanAddDelayedCommand() {
if tryAddDelayedCommand(func() {
i.markDisposedImpl()
}) {
return
}
}
i.markDisposedImpl()
}
func (i *Image) markDisposedImpl() {
i.img.MarkDisposed()
}