diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-06-21 23:51:11 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-06-22 11:45:33 -0700 |
| commit | 6aa88ecc54fde57af893456e9e5fcea5b3e1cb03 (patch) | |
| tree | 83a5a5f3890dd18c9f3559b3184b02fc7c9b27e4 /src/type.zig | |
| parent | 7d511d642845c860ec212b9ee39e371d3f70a68b (diff) | |
| download | zig-6aa88ecc54fde57af893456e9e5fcea5b3e1cb03.tar.gz zig-6aa88ecc54fde57af893456e9e5fcea5b3e1cb03.zip | |
Type/Value: garbage collect some methods
Diffstat (limited to 'src/type.zig')
| -rw-r--r-- | src/type.zig | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/type.zig b/src/type.zig index 59403f9875..280c292314 100644 --- a/src/type.zig +++ b/src/type.zig @@ -120,14 +120,6 @@ pub const Type = struct { return a.toIntern() == b.toIntern(); } - pub fn hash(ty: Type, mod: *const Module) u32 { - _ = mod; // TODO: remove this parameter - // The InternPool data structure hashes based on Key to make interned objects - // unique. An Index can be treated simply as u32 value for the - // purpose of Type/Value hashing and equality. - return std.hash.uint32(@intFromEnum(ty.toIntern())); - } - pub fn format(ty: Type, comptime unused_fmt_string: []const u8, options: std.fmt.FormatOptions, writer: anytype) !void { _ = ty; _ = unused_fmt_string; |
