authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-10-31 16:42:19-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-10-31 22:01:10-07:00
log2b868bb6dd430386bc97e9e387d3b43c673f0dac
tree4fb535f04675c5b4e20be699c8634909848ee710
parentba5f57616f69c01aa6faa5bcabab2d58969cf335

link.File.Wasm.Archive: remove header field

it's not needed

1 files changed, 0 insertions(+), 3 deletions(-)

src/link/Wasm/Archive.zig-3
...@@ -1,5 +1,3 @@...@@ -1,5 +1,3 @@
1header: ar_hdr,
2
3/// A list of long file names, delimited by a LF character (0x0a).1/// A list of long file names, delimited by a LF character (0x0a).
4/// This is stored as a single slice of bytes, as the header-names2/// This is stored as a single slice of bytes, as the header-names
5/// point to the character index of a file name, rather than the index3/// point to the character index of a file name, rather than the index
...@@ -110,7 +108,6 @@ pub fn parse(gpa: Allocator, file_contents: []const u8) !Archive {...@@ -110,7 +108,6 @@ pub fn parse(gpa: Allocator, file_contents: []const u8) !Archive {
110 errdefer gpa.free(long_file_names);108 errdefer gpa.free(long_file_names);
111109
112 return .{110 return .{
113 .header = header,
114 .toc = toc,111 .toc = toc,
115 .long_file_names = long_file_names,112 .long_file_names = long_file_names,
116 };113 };