summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-11 01:12:29 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-11 01:13:24 +0200
commit807aadbe6edabdd14d00aff2a00feb5dc718b11a (patch)
treeff51727766a1937dad8941eb29c120c7eb2ac6f3
parent98acebf56b7d248cc417fa3320e4e884ee5b29b2 (diff)
downloadserenity-807aadbe6edabdd14d00aff2a00feb5dc718b11a.zip
Kernel: Remove some dead code and unused includes in SysFS files
-rw-r--r--Kernel/FileSystem/SysFS.cpp1
-rw-r--r--Kernel/FileSystem/SysFS.h6
-rw-r--r--Kernel/GlobalProcessExposed.cpp1
-rw-r--r--Kernel/SystemExposed.h2
4 files changed, 1 insertions, 9 deletions
diff --git a/Kernel/FileSystem/SysFS.cpp b/Kernel/FileSystem/SysFS.cpp
index e0c1edb49d..a4276dab80 100644
--- a/Kernel/FileSystem/SysFS.cpp
+++ b/Kernel/FileSystem/SysFS.cpp
@@ -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 {
diff --git a/Kernel/FileSystem/SysFS.h b/Kernel/FileSystem/SysFS.h
index 41a272e360..99c079fdc2 100644
--- a/Kernel/FileSystem/SysFS.h
+++ b/Kernel/FileSystem/SysFS.h
@@ -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&);
diff --git a/Kernel/GlobalProcessExposed.cpp b/Kernel/GlobalProcessExposed.cpp
index a1219ead03..7b05f05653 100644
--- a/Kernel/GlobalProcessExposed.cpp
+++ b/Kernel/GlobalProcessExposed.cpp
@@ -29,6 +29,7 @@
#include <Kernel/Net/UDPSocket.h>
#include <Kernel/ProcessExposed.h>
#include <Kernel/Sections.h>
+#include <Kernel/TTY/TTY.h>
namespace Kernel {
diff --git a/Kernel/SystemExposed.h b/Kernel/SystemExposed.h
index 621d6399f5..7ed8d4d1bc 100644
--- a/Kernel/SystemExposed.h
+++ b/Kernel/SystemExposed.h
@@ -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;