diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-17 22:36:04 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-17 22:36:04 +0200 |
commit | b8d6c3722d2887e45d6f2128cf9fd6f2f657c0b7 (patch) | |
tree | 182349460cd377b49e67927e52a0bd93da79bde7 /Kernel/FileSystem/SysFS.cpp | |
parent | d1bbe8b65220ab500917aaf79d2051023fb00ec6 (diff) | |
download | serenity-b8d6c3722d2887e45d6f2128cf9fd6f2f657c0b7.zip |
Kernel: Remove Inode::directory_entry_count()
This was only used in one place: VirtualFileSystem::rmdir(), and that
has now been converted to a simple directory traversal.
Diffstat (limited to 'Kernel/FileSystem/SysFS.cpp')
-rw-r--r-- | Kernel/FileSystem/SysFS.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/Kernel/FileSystem/SysFS.cpp b/Kernel/FileSystem/SysFS.cpp index c7cb243f3a..e6b7431512 100644 --- a/Kernel/FileSystem/SysFS.cpp +++ b/Kernel/FileSystem/SysFS.cpp @@ -145,11 +145,6 @@ KResult SysFSInode::remove_child(StringView const&) return EROFS; } -KResultOr<size_t> SysFSInode::directory_entry_count() const -{ - VERIFY_NOT_REACHED(); -} - KResult SysFSInode::chmod(mode_t) { return EPERM; @@ -206,10 +201,4 @@ RefPtr<Inode> SysFSDirectoryInode::lookup(StringView name) return component->to_inode(m_parent_fs); } -KResultOr<size_t> SysFSDirectoryInode::directory_entry_count() const -{ - Locker locker(m_inode_lock); - return m_associated_component->entries_count(); -} - } |