diff --git a/src/common.zig b/src/common.zig index 327beec838335390d882fbad3275119dc295b44c..aebb4f1f10cff1b215f61caff50e762a4466c356 100644 --- a/src/common.zig +++ b/src/common.zig @@ -317,16 +317,6 @@ pub fn add_files_package(alloc: *std.mem.Allocator, pkg_name: string, mdir: std. while (iter.next()) |item| { try w.print("pub const @\"/{}\" = @embedFile(srcpath ++ \"/{}\");\n", .{ std.zig.fmtEscapes(item.key_ptr.*), std.zig.fmtEscapes(item.value_ptr.*) }); } - try w.writeAll("\n"); - try w.writeAll( - \\pub fn open(comptime path: string) ?string { - \\ if (path.len == 0) return null; - \\ if (path[0] != '/') return null; - \\ if (!@hasDecl(@This(), path)) return null; - \\ return @field(@This(), path); - \\} - \\ - ); var d: zigmod.Dep = .{ .alloc = alloc,