mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
Kernel: Remove some dead code and unused includes in SysFS files
This commit is contained in:
parent
98acebf56b
commit
807aadbe6e
Notes:
sideshowbarker
2024-07-18 09:21:39 +09:00
Author: https://github.com/awesomekling
Commit: 807aadbe6e
4 changed files with 1 additions and 9 deletions
|
@ -7,7 +7,6 @@
|
|||
#include <AK/Singleton.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <Kernel/FileSystem/SysFS.h>
|
||||
#include <Kernel/FileSystem/VirtualFileSystem.h>
|
||||
#include <Kernel/Sections.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
|
|
@ -6,14 +6,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Singleton.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Types.h>
|
||||
#include <Kernel/FileSystem/FileSystem.h>
|
||||
#include <Kernel/FileSystem/Inode.h>
|
||||
#include <Kernel/FileSystem/InodeMetadata.h>
|
||||
#include <Kernel/SystemExposed.h>
|
||||
#include <Kernel/TTY/SlavePTY.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
|
@ -97,7 +92,6 @@ protected:
|
|||
|
||||
class SysFSDirectoryInode : public SysFSInode {
|
||||
friend class SysFS;
|
||||
friend class SysFSRootDirectoryInode;
|
||||
|
||||
public:
|
||||
static NonnullRefPtr<SysFSDirectoryInode> create(SysFS const&, SysFSComponent const&);
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include <Kernel/Net/UDPSocket.h>
|
||||
#include <Kernel/ProcessExposed.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/TTY/TTY.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
#include <Kernel/FileSystem/FileSystem.h>
|
||||
#include <Kernel/FileSystem/Forward.h>
|
||||
#include <Kernel/KResult.h>
|
||||
#include <Kernel/UserOrKernelBuffer.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
|
@ -48,7 +47,6 @@ public:
|
|||
virtual KResultOr<size_t> entries_count() const override { return m_components.size(); };
|
||||
virtual KResult traverse_as_directory(unsigned, Function<bool(FileSystem::DirectoryEntryView const&)>) const override;
|
||||
virtual RefPtr<SysFSComponent> lookup(StringView name) override;
|
||||
void add_component(SysFSComponent const&);
|
||||
|
||||
virtual NonnullRefPtr<Inode> to_inode(SysFS const& sysfs_instance) const override final;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue