Removed unused code

This commit is contained in:
Alexandros Naskos 2020-06-18 20:31:39 +03:00
parent e59e1f08e5
commit eab1f4783b

View File

@ -754,16 +754,6 @@ pub fn resolveTypeOfNodeInternal(
return innermostContainer(handle, handle.tree.token_locs[builtin_call.firstToken()].start); return innermostContainer(handle, handle.tree.token_locs[builtin_call.firstToken()].start);
} }
if (std.mem.eql(u8, call_name, "@cImport")) {
// @TODO
if (builtin_call.params_len != 1) return null;
// 1 - Get innermost container scope.
if (builtin_call.paramsConst()[0].cast(ast.Node.Block)) |block| {
std.debug.warn("cImport block: {}\n", .{block});
}
}
const cast_map = std.ComptimeStringMap(void, .{ const cast_map = std.ComptimeStringMap(void, .{
.{"@as"}, .{"@as"},
.{"@bitCast"}, .{"@bitCast"},