Skip to content

Commit b5b0327

Browse files
committed
std.zig: remove unused hashName() function
1 parent 737474a commit b5b0327

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/std/zig.zig

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,6 @@ pub fn srcHashEql(a: SrcHash, b: SrcHash) bool {
7979
return @as(u128, @bitCast(a)) == @as(u128, @bitCast(b));
8080
}
8181

82-
pub fn hashName(parent_hash: SrcHash, sep: []const u8, name: []const u8) SrcHash {
83-
var out: SrcHash = undefined;
84-
var hasher = SrcHasher.init(.{});
85-
hasher.update(&parent_hash);
86-
hasher.update(sep);
87-
hasher.update(name);
88-
hasher.final(&out);
89-
return out;
90-
}
91-
9282
pub const Loc = struct {
9383
line: usize,
9484
column: usize,

0 commit comments

Comments
 (0)