diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-17 22:36:04 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-17 22:36:04 +0200 |
commit | b8d6c3722d2887e45d6f2128cf9fd6f2f657c0b7 (patch) | |
tree | 182349460cd377b49e67927e52a0bd93da79bde7 /Kernel/FileSystem/ProcFS.h | |
parent | d1bbe8b65220ab500917aaf79d2051023fb00ec6 (diff) | |
download | serenity-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/ProcFS.h')
-rw-r--r-- | Kernel/FileSystem/ProcFS.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Kernel/FileSystem/ProcFS.h b/Kernel/FileSystem/ProcFS.h index d88df337ac..a477ccd304 100644 --- a/Kernel/FileSystem/ProcFS.h +++ b/Kernel/FileSystem/ProcFS.h @@ -59,7 +59,6 @@ protected: virtual KResult add_child(Inode&, const StringView& name, mode_t) override; virtual KResult remove_child(const StringView& name) override; virtual void did_seek(FileDescription&, off_t) override; - virtual KResultOr<size_t> directory_entry_count() const override; virtual KResult chmod(mode_t) override; virtual KResult chown(uid_t, gid_t) override; virtual KResult truncate(u64) override; @@ -91,7 +90,6 @@ protected: virtual InodeMetadata metadata() const override; virtual KResult traverse_as_directory(Function<bool(FileSystem::DirectoryEntryView const&)>) const override; virtual RefPtr<Inode> lookup(StringView name) override; - virtual KResultOr<size_t> directory_entry_count() const override; ProcFS& m_parent_fs; }; |