summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-31 15:32:19 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-31 15:32:19 +0200
commita1fdda3e20546d9d75e84752012daac99e07a675 (patch)
tree6be4bc47fec9b44cb2eb2e6d72733778662c3607
parent056a7fea080c948f40086375feec3dd193a40d7a (diff)
downloadserenity-a1fdda3e20546d9d75e84752012daac99e07a675.zip
FileSystem: Don't expose VFS::root_inode().
It seems like we don't need to expose this anymore, it's only used by VFS internally to construct the root custody.
-rw-r--r--Kernel/FileSystem/VirtualFileSystem.cpp2
-rw-r--r--Kernel/FileSystem/VirtualFileSystem.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/Kernel/FileSystem/VirtualFileSystem.cpp b/Kernel/FileSystem/VirtualFileSystem.cpp
index 774c8db1cc..d1efa66a54 100644
--- a/Kernel/FileSystem/VirtualFileSystem.cpp
+++ b/Kernel/FileSystem/VirtualFileSystem.cpp
@@ -617,7 +617,7 @@ void VFS::sync()
Custody& VFS::root_custody()
{
if (!m_root_custody)
- m_root_custody = Custody::create(nullptr, "", *root_inode());
+ m_root_custody = Custody::create(nullptr, "", *m_root_inode);
return *m_root_custody;
}
diff --git a/Kernel/FileSystem/VirtualFileSystem.h b/Kernel/FileSystem/VirtualFileSystem.h
index fa5d923250..aef45db562 100644
--- a/Kernel/FileSystem/VirtualFileSystem.h
+++ b/Kernel/FileSystem/VirtualFileSystem.h
@@ -90,8 +90,6 @@ public:
void for_each_mount(Function<void(const Mount&)>) const;
InodeIdentifier root_inode_id() const;
- Inode* root_inode() { return m_root_inode.ptr(); }
- const Inode* root_inode() const { return m_root_inode.ptr(); }
void sync();