From a1b8545265b4fb47fe45287655f8885d092aa9df Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Sat, 10 Sep 2022 00:59:46 +0200 Subject: [PATCH] coff: remove unused function --- src/link/Coff/Atom.zig | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/link/Coff/Atom.zig b/src/link/Coff/Atom.zig index ffd8fe45e6..39e04b2641 100644 --- a/src/link/Coff/Atom.zig +++ b/src/link/Coff/Atom.zig @@ -111,13 +111,3 @@ pub fn addBaseRelocation(self: *Atom, coff_file: *Coff, offset: u32) !void { } try gop.value_ptr.append(gpa, offset); } - -pub fn addBinding(self: *Atom, coff_file: *Coff, target: SymbolWithLoc) !void { - const gpa = coff_file.base.allocator; - log.debug(" (adding binding to target %{d} in %{d})", .{ target.sym_index, self.sym_index }); - const gop = try coff_file.bindings.getOrPut(gpa, self); - if (!gop.found_existing) { - gop.value_ptr.* = .{}; - } - try gop.value_ptr.append(gpa, target); -}