From c51ce65c887457fcf6e211f6fc8a58faa66bd59e Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Mon, 3 Jun 2024 20:44:58 -0400 Subject: [PATCH] System no longer requires a NewCanvas method --- internal/system/system.go | 2 -- x/backend.go | 4 ---- 2 files changed, 6 deletions(-) diff --git a/internal/system/system.go b/internal/system/system.go index 5e447a4..d7bcefc 100644 --- a/internal/system/system.go +++ b/internal/system/system.go @@ -15,8 +15,6 @@ type System struct { type BackendLink interface { // NewTexture creates a new texture from an image. NewTexture (image.Image) canvas.TextureCloser - // NewCanvas creates a new blank canvas with the specified bounds. - NewCanvas (image.Rectangle) canvas.Canvas // NewSurface creates a new surface with the specified bounds. NewSurface (image.Rectangle) (SurfaceLink, error) } diff --git a/x/backend.go b/x/backend.go index a73f79d..1ece1a6 100644 --- a/x/backend.go +++ b/x/backend.go @@ -31,10 +31,6 @@ func (this *backendLink) NewTexture (source image.Image) canvas.TextureCloser { return this.backend.NewTexture(source) } -func (this *backendLink) NewCanvas (bounds image.Rectangle) canvas.Canvas { - return this.backend.NewCanvas(bounds) -} - func (this *backendLink) NewSurface (bounds image.Rectangle) (system.SurfaceLink, error) { // TODO return nil, errors.New("x: not implemented")