diff options
| author | David Rubin <daviru007@icloud.com> | 2024-08-26 12:27:34 -0700 |
|---|---|---|
| committer | David Rubin <daviru007@icloud.com> | 2024-08-26 12:27:34 -0700 |
| commit | 61e8a6c0082778e9d7a120fb5b9c30ebf85d586b (patch) | |
| tree | 68a56acd898e308845054123f0cf6816761d3fa1 /src/InternPool.zig | |
| parent | f777b298327de95d2a54d814ca562c08fd7c7a87 (diff) | |
| download | zig-61e8a6c0082778e9d7a120fb5b9c30ebf85d586b.tar.gz zig-61e8a6c0082778e9d7a120fb5b9c30ebf85d586b.zip | |
remove some stale code
- Don't create an `inner_sema` in `unionFields`
- Remove assertions of the sema owner, when we literally just set it
Diffstat (limited to 'src/InternPool.zig')
| -rw-r--r-- | src/InternPool.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig index 6949383175..7adfae31f4 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -457,7 +457,7 @@ pub const Cau = struct { unwrapped.index); } }; - pub fn unwrap(cau_index: Cau.Index, ip: *const InternPool) Unwrapped { + fn unwrap(cau_index: Cau.Index, ip: *const InternPool) Unwrapped { return .{ .tid = @enumFromInt(@intFromEnum(cau_index) >> ip.tid_shift_31 & ip.getTidMask()), .index = @intFromEnum(cau_index) & ip.getIndexMask(u31), @@ -1464,7 +1464,7 @@ pub const NamespaceIndex = enum(u32) { unwrapped.index); } }; - pub fn unwrap(namespace_index: NamespaceIndex, ip: *const InternPool) Unwrapped { + fn unwrap(namespace_index: NamespaceIndex, ip: *const InternPool) Unwrapped { const index = @intFromEnum(namespace_index) & ip.getIndexMask(u32); return .{ .tid = @enumFromInt(@intFromEnum(namespace_index) >> ip.tid_shift_32 & ip.getTidMask()), |
