mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 00:35:06 +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
|
@ -173,11 +173,6 @@ KResult ProcFSInode::remove_child(const StringView&)
|
|||
return EROFS;
|
||||
}
|
||||
|
||||
KResultOr<size_t> ProcFSInode::directory_entry_count() const
|
||||
{
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
KResult ProcFSInode::chmod(mode_t)
|
||||
{
|
||||
return EPERM;
|
||||
|
@ -234,12 +229,6 @@ RefPtr<Inode> ProcFSDirectoryInode::lookup(StringView name)
|
|||
return component->to_inode(m_parent_fs);
|
||||
}
|
||||
|
||||
KResultOr<size_t> ProcFSDirectoryInode::directory_entry_count() const
|
||||
{
|
||||
Locker locker(m_inode_lock);
|
||||
return m_associated_component->entries_count();
|
||||
}
|
||||
|
||||
NonnullRefPtr<ProcFSLinkInode> ProcFSLinkInode::create(const ProcFS& procfs, const ProcFSExposedComponent& component)
|
||||
{
|
||||
return adopt_ref(*new (nothrow) ProcFSLinkInode(procfs, component));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue