mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
✂️ some dead code
This commit is contained in:
@@ -54,8 +54,6 @@ pub const NodeModuleBundle = struct {
|
||||
|
||||
code_string: ?AllocatedString = null,
|
||||
|
||||
bytecode_cache_fetcher: Fs.BytecodeCacheFetcher = Fs.BytecodeCacheFetcher{},
|
||||
|
||||
pub const magic_bytes = "#!/usr/bin/env bun\n\n";
|
||||
threadlocal var jsbundle_prefix: [magic_bytes.len + 5]u8 = undefined;
|
||||
|
||||
@@ -64,10 +62,6 @@ pub const NodeModuleBundle = struct {
|
||||
return this.package_name_map.contains("react-refresh");
|
||||
}
|
||||
|
||||
pub inline fn fetchByteCodeCache(this: *NodeModuleBundle, basename: string, fs: *Fs.FileSystem.RealFS) ?StoredFileDescriptorType {
|
||||
return this.bytecode_cache_fetcher.fetch(basename, fs);
|
||||
}
|
||||
|
||||
pub fn readCodeAsStringSlow(this: *NodeModuleBundle, allocator: std.mem.Allocator) !string {
|
||||
if (this.code_string) |code| {
|
||||
return code.str;
|
||||
|
||||
Reference in New Issue
Block a user