mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +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
Notes:
sideshowbarker
2024-07-18 08:51:17 +09:00
Author: https://github.com/awesomekling
Commit: b8d6c3722d
15 changed files with 0 additions and 92 deletions
|
@ -122,11 +122,6 @@ KResult DevFSInode::remove_child(const StringView&)
|
|||
return EROFS;
|
||||
}
|
||||
|
||||
KResultOr<size_t> DevFSInode::directory_entry_count() const
|
||||
{
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
KResult DevFSInode::chmod(mode_t)
|
||||
{
|
||||
return EPERM;
|
||||
|
@ -221,12 +216,6 @@ RefPtr<Inode> DevFSDirectoryInode::lookup(StringView)
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
KResultOr<size_t> DevFSDirectoryInode::directory_entry_count() const
|
||||
{
|
||||
Locker locker(m_inode_lock);
|
||||
return m_devices.size();
|
||||
}
|
||||
|
||||
DevFSRootDirectoryInode::DevFSRootDirectoryInode(DevFS& fs)
|
||||
: DevFSDirectoryInode(fs)
|
||||
, m_parent_fs(fs)
|
||||
|
@ -332,11 +321,6 @@ InodeMetadata DevFSRootDirectoryInode::metadata() const
|
|||
metadata.mtime = mepoch;
|
||||
return metadata;
|
||||
}
|
||||
KResultOr<size_t> DevFSRootDirectoryInode::directory_entry_count() const
|
||||
{
|
||||
Locker locker(m_parent_fs.m_lock);
|
||||
return m_devices.size() + DevFSDirectoryInode::directory_entry_count().value();
|
||||
}
|
||||
|
||||
DevFSDeviceInode::DevFSDeviceInode(DevFS& fs, Device const& device, NonnullOwnPtr<KString> name)
|
||||
: DevFSInode(fs)
|
||||
|
@ -429,9 +413,5 @@ InodeMetadata DevFSPtsDirectoryInode::metadata() const
|
|||
metadata.mtime = mepoch;
|
||||
return metadata;
|
||||
}
|
||||
KResultOr<size_t> DevFSPtsDirectoryInode::directory_entry_count() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue