From 7cdd7a6f32ba5b74fb4991ead410bfa14485db4e Mon Sep 17 00:00:00 2001 From: valadaptive Date: Thu, 22 Feb 2024 00:51:13 -0500 Subject: [PATCH] Remove unused files.js exports --- etc/browser/lib/files.js | 2 -- lib/files.js | 3 --- 2 files changed, 5 deletions(-) diff --git a/etc/browser/lib/files.js b/etc/browser/lib/files.js index b984631f..20d0934f 100644 --- a/etc/browser/lib/files.js +++ b/etc/browser/lib/files.js @@ -17,7 +17,5 @@ function tryReadFileSync() { return null; } module.exports = { createImportHook, createSyncImportHook, - existsSync: function () { return false; }, - readFileSync: function () { throw createError(); }, tryReadFileSync, }; diff --git a/lib/files.js b/lib/files.js index b9405f46..f46530fe 100644 --- a/lib/files.js +++ b/lib/files.js @@ -76,8 +76,5 @@ function tryReadFileSync(str) { module.exports = { createImportHook, createSyncImportHook, - // Proxy a few methods to better shim them for browserify. - existsSync: fs.existsSync, - readFileSync: fs.readFileSync, tryReadFileSync };