restorable: Remove unnecessary call of clearImage

clearImage is already called in any cases.
This commit is contained in:
Hajime Hoshi 2019-08-15 22:38:04 +09:00
parent 0cbf126b80
commit 2cb1ea6fb4

View File

@ -30,10 +30,8 @@ type Pixels struct {
// Apply applies the Pixels state to the given image especially for restoring.
func (p *Pixels) Apply(img *graphicscommand.Image) {
if p.rectToPixels == nil {
clearImage(img)
return
}
p.rectToPixels.apply(img)
}