mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +00:00
Kernel/ProcFS: Remove unused ProcFSExposedComponent::entries_count()
This commit is contained in:
parent
d686d2ef18
commit
6fae2a5f9e
3 changed files with 0 additions and 33 deletions
|
@ -123,7 +123,6 @@ public:
|
|||
void plug(USB::Device&);
|
||||
void unplug(USB::Device&);
|
||||
|
||||
virtual KResultOr<size_t> entries_count() const override;
|
||||
virtual KResult traverse_as_directory(unsigned, Function<bool(FileSystem::DirectoryEntryView const&)>) const override;
|
||||
virtual RefPtr<ProcFSExposedComponent> lookup(StringView name) override;
|
||||
|
||||
|
@ -136,11 +135,6 @@ private:
|
|||
mutable SpinLock<u8> m_lock;
|
||||
};
|
||||
|
||||
KResultOr<size_t> ProcFSUSBBusDirectory::entries_count() const
|
||||
{
|
||||
ScopedSpinLock lock(m_lock);
|
||||
return m_device_nodes.size_slow();
|
||||
}
|
||||
KResult ProcFSUSBBusDirectory::traverse_as_directory(unsigned fsid, Function<bool(FileSystem::DirectoryEntryView const&)> callback) const
|
||||
{
|
||||
ScopedSpinLock lock(m_lock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue