From afe1a93648711885970a60d12b1fb0ed4bb809a7 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 3 Jul 2022 15:23:52 +0900 Subject: [PATCH] internal/graphicscommand, internal/graphicsdriver/metal: remove unused code --- internal/graphicscommand/command.go | 5 ----- internal/graphicsdriver/metal/graphics_darwin.go | 3 --- 2 files changed, 8 deletions(-) diff --git a/internal/graphicscommand/command.go b/internal/graphicscommand/command.go index 6d422bfa0..40bcfb32a 100644 --- a/internal/graphicscommand/command.go +++ b/internal/graphicscommand/command.go @@ -38,11 +38,6 @@ type command interface { Exec(graphicsDriver graphicsdriver.Graphics, indexOffset int) error } -type size struct { - width float32 - height float32 -} - type drawTrianglesCommandPool struct { pool []*drawTrianglesCommand } diff --git a/internal/graphicsdriver/metal/graphics_darwin.go b/internal/graphicsdriver/metal/graphics_darwin.go index f141ae15b..f5624edeb 100644 --- a/internal/graphicsdriver/metal/graphics_darwin.go +++ b/internal/graphicsdriver/metal/graphics_darwin.go @@ -328,9 +328,6 @@ type Graphics struct { shaders map[graphicsdriver.ShaderID]*Shader nextShaderID graphicsdriver.ShaderID - src *Image - dst *Image - transparent bool maxImageSize int tmpTextures []mtl.Texture