diff --git a/src/cmd/license.zig b/src/cmd/license.zig index 675c5e1ab9e1417e959694fca53ebfb8e78dddcd..8251a932c07dff08dab3f427cf8f13cd7e2e4e6d 100644 --- a/src/cmd/license.zig +++ b/src/cmd/license.zig @@ -5,7 +5,6 @@ const licenses = @import("licenses"); const extras = @import("extras"); const zigmod = @import("../lib.zig"); -const u = @import("./../util/index.zig"); const common = @import("./../common.zig"); const List = std.ArrayList(zigmod.Module); diff --git a/src/util/funcs.zig b/src/util/funcs.zig index e60129e71aa0a502dde9190ed476ced3fbb09f00..26a7ef9e298dd70c485ee2a32fc8ae8016c7f5f7 100644 --- a/src/util/funcs.zig +++ b/src/util/funcs.zig @@ -59,15 +59,6 @@ pub fn does_folder_exist(fpath: string) !bool { return true; } -pub fn _join(comptime delim: string, comptime xs: []const string) string { - var buf: string = ""; - for (xs) |x, i| { - buf = buf ++ x; - if (i < xs.len - 1) buf = buf ++ delim; - } - return buf; -} - pub fn trim_suffix(in: string, suffix: string) string { if (std.mem.endsWith(u8, in, suffix)) { return in[0 .. in.len - suffix.len];