Skip to content

Commit 94b014b

Browse files
committed
vfs: remove unused exports from fd.js and stats.js
- Remove unused isVirtualFd() function from fd.js - Remove unused getOpenFdCount() function from fd.js - Remove unused kDefaultBlockSize export from stats.js (still used internally) These functions were exported but never used anywhere in the codebase. PR-URL: #61478
1 parent ab1d435 commit 94b014b

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

lib/internal/vfs/fd.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -133,29 +133,10 @@ function closeVirtualFd(fd) {
133133
return openFDs.delete(fd);
134134
}
135135

136-
/**
137-
* Checks if a file descriptor is a virtual fd.
138-
* @param {number} fd The file descriptor number
139-
* @returns {boolean}
140-
*/
141-
function isVirtualFd(fd) {
142-
return openFDs.has(fd);
143-
}
144-
145-
/**
146-
* Gets the count of open virtual file descriptors.
147-
* @returns {number}
148-
*/
149-
function getOpenFdCount() {
150-
return openFDs.size;
151-
}
152-
153136
module.exports = {
154137
VirtualFD,
155138
VFS_FD_BASE,
156139
openVirtualFd,
157140
getVirtualFd,
158141
closeVirtualFd,
159-
isVirtualFd,
160-
getOpenFdCount,
161142
};

lib/internal/vfs/stats.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,5 +192,4 @@ module.exports = {
192192
createFileStats,
193193
createDirectoryStats,
194194
createSymlinkStats,
195-
kDefaultBlockSize,
196195
};

0 commit comments

Comments
 (0)