From 7216a022f9f66682be91441b402a1983b29295ca Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Fri, 4 Feb 2022 22:09:50 -0400 Subject: [PATCH] metal: remove unused internal code --- src/modules/graphics/metal/Graphics.mm | 5 ----- src/modules/graphics/metal/Shader.mm | 5 ----- 2 files changed, 10 deletions(-) diff --git a/src/modules/graphics/metal/Graphics.mm b/src/modules/graphics/metal/Graphics.mm index 4466eb51d..baf263867 100644 --- a/src/modules/graphics/metal/Graphics.mm +++ b/src/modules/graphics/metal/Graphics.mm @@ -130,11 +130,6 @@ static inline id getMTLTexture(love::graphics::Texture *tex) return tex ? (__bridge id)(void *) tex->getHandle() : nil; } -static inline id getMTLSampler(love::graphics::Texture *tex) -{ - return tex ? (__bridge id)(void *) tex->getSamplerHandle() : nil; -} - static inline id getMTLRenderTarget(love::graphics::Texture *tex) { return tex ? (__bridge id)(void *) tex->getRenderTargetHandle() : nil; diff --git a/src/modules/graphics/metal/Shader.mm b/src/modules/graphics/metal/Shader.mm index 7e8687e9f..2b8464db7 100644 --- a/src/modules/graphics/metal/Shader.mm +++ b/src/modules/graphics/metal/Shader.mm @@ -232,11 +232,6 @@ static inline id getMTLTexture(love::graphics::Buffer *buffer) return buffer ? (__bridge id)(void *) buffer->getTexelBufferHandle() : nil; } -static inline id getMTLSampler(love::graphics::Texture *tex) -{ - return tex ? (__bridge id)(void *) tex->getSamplerHandle() : nil; -} - static inline id getMTLBuffer(love::graphics::Buffer *buffer) { return buffer ? (__bridge id)(void *) buffer->getHandle() : nil;