chore: make declarations private if they don't need to be public

This change is 99%  s/pub//   + a handful of dead code removal.
This commit is contained in:
Karl Seguin committed 2026-09-10 14:42:09 +08:00
1 parent b26d487b2a
commit 2e6999f20b
303 files changed
+1561 -1766

No files matched your search

+1 -9
View File
@@ -178,10 +178,6 @@ pub const String = extern struct {
return p[0..ul];
}
pub fn isDeleted(self: *const String) bool {
return self.len == tombstone;
}
pub fn format(self: String, writer: *std.Io.Writer) !void {
return writer.writeAll(self.str());
}
@@ -224,15 +220,11 @@ pub const String = extern struct {
};
}
pub fn eqlSliceIgnoreCase(a: String, b: []const u8) bool {
return std.ascii.eqlIgnoreCase(a.str(), b);
}
const EqualOrDeleted = union(enum) {
deleted,
equal: bool,
};
pub fn eqlSliceOrDeleted(a: String, b: []const u8) EqualOrDeleted {
fn eqlSliceOrDeleted(a: String, b: []const u8) EqualOrDeleted {
if (a.len == tombstone) {
return .deleted;
}