From 5e03aec75a4d50ca987fc113162ff64cbde30db0 Mon Sep 17 00:00:00 2001 From: Corentin Wallez Date: Tue, 27 Jun 2017 11:12:13 -0400 Subject: [PATCH] Remove some unused variables --- generator/templates/wire/WireServer.cpp | 1 - src/backend/metal/CommandBufferMTL.mm | 9 +-------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/generator/templates/wire/WireServer.cpp b/generator/templates/wire/WireServer.cpp index f1817df6e4..62c47d7c3c 100644 --- a/generator/templates/wire/WireServer.cpp +++ b/generator/templates/wire/WireServer.cpp @@ -247,7 +247,6 @@ namespace wire { private: nxtProcTable procs; CommandSerializer* serializer = nullptr; - bool gotError = false; void* GetCmdSpace(size_t size) { return serializer->GetCmdSpace(size); diff --git a/src/backend/metal/CommandBufferMTL.mm b/src/backend/metal/CommandBufferMTL.mm index 8d9125910e..44c8c7257a 100644 --- a/src/backend/metal/CommandBufferMTL.mm +++ b/src/backend/metal/CommandBufferMTL.mm @@ -139,8 +139,6 @@ namespace metal { encoders.device = device; uint32_t currentSubpass = 0; - id renderEncoder = nil; - while (commands.NextCommandId(&type)) { switch (type) { case Command::AdvanceSubpass: @@ -313,10 +311,7 @@ namespace metal { case Command::SetPushConstants: { SetPushConstantsCmd* cmd = commands.NextCommand(); - uint32_t* valuesUInt = commands.NextData(cmd->count); - int32_t* valuesInt = reinterpret_cast(valuesUInt); - float* valuesFloat = reinterpret_cast(valuesUInt); - + commands.NextData(cmd->count); // TODO(kainino@chromium.org): implement SetPushConstants } break; @@ -464,8 +459,6 @@ namespace metal { auto buffers = commands.NextData>(cmd->count); auto offsets = commands.NextData(cmd->count); - auto inputState = lastPipeline->GetInputState(); - std::array, kMaxVertexInputs> mtlBuffers; std::array mtlOffsets;