From 6bb51107ec262cc12324c9a7d7f98a0899e44b51 Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Wed, 27 Sep 2023 15:13:43 +0100 Subject: [PATCH] fixup! fs: improve error perf of sync chmod+fchmod --- lib/internal/fs/sync.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/internal/fs/sync.js b/lib/internal/fs/sync.js index efa8860596593b..2fefee339de7f7 100644 --- a/lib/internal/fs/sync.js +++ b/lib/internal/fs/sync.js @@ -105,11 +105,6 @@ function fchmod(fd, mode) { return binding.fchmodSync(fd, mode); } -function unlink(path) { - path = pathModule.toNamespacedPath(getValidatedPath(path)); - return binding.unlinkSync(path); -} - module.exports = { readFileUtf8, exists,