Skip to content

Commit 736b664

Browse files
committed
vfs: remove unused utility functions from module_hooks
Remove getActiveVFSCount() and areHooksInstalled() functions that were exported but never used anywhere in the codebase. This improves code coverage by removing unreachable code.
1 parent 6969624 commit 736b664

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

lib/internal/vfs/module_hooks.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -676,27 +676,9 @@ function installHooks() {
676676
hooksInstalled = true;
677677
}
678678

679-
/**
680-
* Get the count of active VFS instances.
681-
* @returns {number}
682-
*/
683-
function getActiveVFSCount() {
684-
return activeVFSList.length;
685-
}
686-
687-
/**
688-
* Check if hooks are installed.
689-
* @returns {boolean}
690-
*/
691-
function areHooksInstalled() {
692-
return hooksInstalled;
693-
}
694-
695679
module.exports = {
696680
registerVFS,
697681
unregisterVFS,
698682
findVFSForStat,
699683
findVFSForRead,
700-
getActiveVFSCount,
701-
areHooksInstalled,
702684
};

0 commit comments

Comments
 (0)