authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2022-09-18 11:47:59 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2022-09-18 11:47:59 -07:00
log9c43bd4e93af32d6c59693754d1954186c5e941a
tree9f5c5949b9f9cd53cfa4c65fa8ece95ee4a297e0
parent928e8883003aa02de7f66d29fee86f0bcdd8e090

more dead code removal


2 files changed, 0 insertions(+), 10 deletions(-)

src/cmd/license.zig-1
...@@ -5,7 +5,6 @@ const licenses = @import("licenses");...@@ -5,7 +5,6 @@ const licenses = @import("licenses");
5const extras = @import("extras");5const extras = @import("extras");
66
7const zigmod = @import("../lib.zig");7const zigmod = @import("../lib.zig");
8const u = @import("./../util/index.zig");
9const common = @import("./../common.zig");8const common = @import("./../common.zig");
109
11const List = std.ArrayList(zigmod.Module);10const List = std.ArrayList(zigmod.Module);
src/util/funcs.zig-9
...@@ -59,15 +59,6 @@ pub fn does_folder_exist(fpath: string) !bool {...@@ -59,15 +59,6 @@ pub fn does_folder_exist(fpath: string) !bool {
59 return true;59 return true;
60}60}
6161
62pub fn _join(comptime delim: string, comptime xs: []const string) string {
63 var buf: string = "";
64 for (xs) |x, i| {
65 buf = buf ++ x;
66 if (i < xs.len - 1) buf = buf ++ delim;
67 }
68 return buf;
69}
70
71pub fn trim_suffix(in: string, suffix: string) string {62pub fn trim_suffix(in: string, suffix: string) string {
72 if (std.mem.endsWith(u8, in, suffix)) {63 if (std.mem.endsWith(u8, in, suffix)) {
73 return in[0 .. in.len - suffix.len];64 return in[0 .. in.len - suffix.len];