summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-17 21:11:12 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-17 21:11:12 +0200
commit63e1423830794413370707420570f83b5802aa4f (patch)
tree18b4ca8e91151b04a4d22f50e83de754ce5e2555
parentcee9528168d16ba4fb306df1ae5e2d0afe569dce (diff)
downloadserenity-63e1423830794413370707420570f83b5802aa4f.zip
Kernel: Remove unused Inode::is_shared_vmobject()
-rw-r--r--Kernel/FileSystem/Inode.cpp6
-rw-r--r--Kernel/FileSystem/Inode.h1
2 files changed, 0 insertions, 7 deletions
diff --git a/Kernel/FileSystem/Inode.cpp b/Kernel/FileSystem/Inode.cpp
index d310b01ddb..d454400b08 100644
--- a/Kernel/FileSystem/Inode.cpp
+++ b/Kernel/FileSystem/Inode.cpp
@@ -272,10 +272,4 @@ RefPtr<SharedInodeVMObject> Inode::shared_vmobject() const
return m_shared_vmobject.strong_ref();
}
-bool Inode::is_shared_vmobject(const SharedInodeVMObject& other) const
-{
- Locker locker(m_lock);
- return m_shared_vmobject.unsafe_ptr() == &other;
-}
-
}
diff --git a/Kernel/FileSystem/Inode.h b/Kernel/FileSystem/Inode.h
index a49635d020..9e5e2230f3 100644
--- a/Kernel/FileSystem/Inode.h
+++ b/Kernel/FileSystem/Inode.h
@@ -88,7 +88,6 @@ public:
void set_shared_vmobject(SharedInodeVMObject&);
RefPtr<SharedInodeVMObject> shared_vmobject() const;
- bool is_shared_vmobject(const SharedInodeVMObject&) const;
static void sync();