mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 14:45: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:
parent
d1bbe8b652
commit
b8d6c3722d
15 changed files with 0 additions and 92 deletions
|
@ -212,13 +212,6 @@ RefPtr<Inode> TmpFSInode::lookup(StringView name)
|
|||
return fs().get_inode(it->value.inode->identifier());
|
||||
}
|
||||
|
||||
KResultOr<size_t> TmpFSInode::directory_entry_count() const
|
||||
{
|
||||
Locker locker(m_inode_lock, Mutex::Mode::Shared);
|
||||
VERIFY(is_directory());
|
||||
return 2 + m_children.size();
|
||||
}
|
||||
|
||||
void TmpFSInode::notify_watchers()
|
||||
{
|
||||
set_metadata_dirty(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue