Skip to content

Commit e0c475b

Browse files
committed
elf: remove now unused globalByName
1 parent a76ad90 commit e0c475b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/link/Elf.zig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5472,11 +5472,6 @@ pub fn getOrPutGlobal(self: *Elf, name: []const u8) !GetOrPutGlobalResult {
54725472
};
54735473
}
54745474

5475-
pub fn globalByName(self: *Elf, name: []const u8) ?Symbol.Index {
5476-
const name_off = self.strings.getOffset(name) orelse return null;
5477-
return self.resolver.get(name_off);
5478-
}
5479-
54805475
pub fn getGlobalSymbol(self: *Elf, name: []const u8, lib_name: ?[]const u8) !u32 {
54815476
return self.zigObjectPtr().?.getGlobalSymbol(self, name, lib_name);
54825477
}

0 commit comments

Comments
 (0)