✂️ some dead code

This commit is contained in:
Jarred Sumner
2023-05-08 21:29:19 -07:00
parent e422c849d5
commit 4a2d89d865
2 changed files with 0 additions and 51 deletions

View File

@@ -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;