From f613cd1407878cb6f9ac5a24af795f333754cbe1 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 12 Feb 2019 23:34:02 +0900 Subject: [PATCH] restorable: Remove Pixels that is not used anywhere --- internal/restorable/image.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/internal/restorable/image.go b/internal/restorable/image.go index 89653845c..7f634a757 100644 --- a/internal/restorable/image.go +++ b/internal/restorable/image.go @@ -132,15 +132,6 @@ func (i *Image) BasePixelsForTesting() []byte { return i.basePixels } -// Pixels returns the image's pixel bytes. -// -// Pixels tries to read pixels from GPU if needed. -// It is assured that GPU is not accessed if the opration against the image is only ReplacePixels. -func (i *Image) Pixels() []byte { - i.readPixelsFromGPUIfNeeded() - return i.basePixels -} - // Size returns the image's size. func (i *Image) Size() (int, int) { return i.image.Size()