remove unused unused variables

This commit is contained in:
Robin Voetter
2022-09-24 00:34:46 +02:00
parent 5b5b7d047f
commit 977b4ca5f4
2 changed files with 1 additions and 9 deletions

View File

@@ -236,13 +236,6 @@ fn createCommandBuffers(
const cmdbufs = try allocator.alloc(vk.CommandBuffer, framebuffers.len); const cmdbufs = try allocator.alloc(vk.CommandBuffer, framebuffers.len);
errdefer allocator.free(cmdbufs); errdefer allocator.free(cmdbufs);
_ = pipeline;
_ = render_pass;
_ = extent;
_ = buffer;
_ = pool;
_ = gc;
try gc.vkd.allocateCommandBuffers(gc.dev, &.{ try gc.vkd.allocateCommandBuffers(gc.dev, &.{
.command_pool = pool, .command_pool = pool,
.level = .primary, .level = .primary,
@@ -269,7 +262,6 @@ fn createCommandBuffers(
}; };
for (cmdbufs) |cmdbuf, i| { for (cmdbufs) |cmdbuf, i| {
_ = i;
try gc.vkd.beginCommandBuffer(cmdbuf, &.{ try gc.vkd.beginCommandBuffer(cmdbuf, &.{
.flags = .{}, .flags = .{},
.p_inheritance_info = null, .p_inheritance_info = null,

View File

@@ -1052,7 +1052,7 @@ fn Renderer(comptime WriterType: type) type {
\\ .Struct = .{{ \\ .Struct = .{{
\\ .layout = .Auto, \\ .layout = .Auto,
\\ .fields = &fields, \\ .fields = &fields,
\\ .decls = &[_]std.builtin.TypeInfo.Declaration{{}}, \\ .decls = &[_]std.builtin.Type.Declaration{{}},
\\ .is_tuple = false, \\ .is_tuple = false,
\\ }}, \\ }},
\\ }}); \\ }});