mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-09-15 15:32:03 -04:00
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:
303 files changed
+1561
-1766
No files matched your search
+1
-9
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user