summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/SysFS.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-17 22:36:04 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-17 22:36:04 +0200
commitb8d6c3722d2887e45d6f2128cf9fd6f2f657c0b7 (patch)
tree182349460cd377b49e67927e52a0bd93da79bde7 /Kernel/FileSystem/SysFS.cpp
parentd1bbe8b65220ab500917aaf79d2051023fb00ec6 (diff)
downloadserenity-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.cpp11
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();
-}
-
}