Skip to content

Commit 46347ce

Browse files
axdankrobbielyman
authored andcommitted
remove a forget block of code
1 parent f8983a5 commit 46347ce

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/lib.zig

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4383,23 +4383,6 @@ pub const Lua = opaque {
43834383
const T = @TypeOf(value);
43844384
const type_info = @typeInfo(T);
43854385

4386-
if (type_info == .@"struct" or type_info == .@"union" or type_info == .@"enum") {
4387-
if (@hasDecl(T, "ziglua_pushAny")) {
4388-
const fnInfo = @typeInfo(@TypeOf(T.ziglua_pushAny)).@"fn";
4389-
switch (fnInfo.params.len) {
4390-
// fn(self, lua) -> void
4391-
2 => {
4392-
if (@typeInfo(fnInfo.return_type.?) == .error_union) {
4393-
return try value.ziglua_pushAny(lua);
4394-
} else {
4395-
return value.ziglua_pushAny(lua);
4396-
}
4397-
},
4398-
else => @compileError(@typeName(T) ++ ".ziglua_pushAny has invalid signature, required: fn(self: T, lua: *Lua) void"),
4399-
}
4400-
}
4401-
}
4402-
44034386
if (type_info == .@"struct" or type_info == .@"union" or type_info == .@"enum") {
44044387
if (@hasDecl(T, "toLua")) {
44054388
const toLuaArgs = .{ value, lua };

0 commit comments

Comments
 (0)