1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 12:15:07 +00:00

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.
This commit is contained in:
Andreas Kling 2021-07-17 22:36:04 +02:00
parent d1bbe8b652
commit b8d6c3722d
15 changed files with 0 additions and 92 deletions

View file

@ -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();
}
}