summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-01-11 00:42:35 +0100
committerAndreas Kling <kling@serenityos.org>2022-01-11 01:12:16 +0100
commita4b3bf1d63ad02703e1a474b949398c6aa186b1b (patch)
treea7cf2b3c251baf552b8b6f445be021ab368de848
parentb66bb11ed139ae6fd9d2545faf784dad871b7653 (diff)
downloadserenity-a4b3bf1d63ad02703e1a474b949398c6aa186b1b.zip
Kernel: Remove empty Ext2FSInode::one_ref_left()
-rw-r--r--Kernel/FileSystem/Ext2FileSystem.cpp5
-rw-r--r--Kernel/FileSystem/Ext2FileSystem.h3
2 files changed, 0 insertions, 8 deletions
diff --git a/Kernel/FileSystem/Ext2FileSystem.cpp b/Kernel/FileSystem/Ext2FileSystem.cpp
index 6479d180e5..46ca7142ff 100644
--- a/Kernel/FileSystem/Ext2FileSystem.cpp
+++ b/Kernel/FileSystem/Ext2FileSystem.cpp
@@ -1553,11 +1553,6 @@ ErrorOr<NonnullRefPtr<Inode>> Ext2FSInode::lookup(StringView name)
return fs().get_inode({ fsid(), inode_index });
}
-void Ext2FSInode::one_ref_left()
-{
- // FIXME: I would like to not live forever, but uncached Ext2FS is fucking painful right now.
-}
-
ErrorOr<void> Ext2FSInode::set_atime(time_t t)
{
MutexLocker locker(m_inode_lock);
diff --git a/Kernel/FileSystem/Ext2FileSystem.h b/Kernel/FileSystem/Ext2FileSystem.h
index 717ba74238..54cf98c78a 100644
--- a/Kernel/FileSystem/Ext2FileSystem.h
+++ b/Kernel/FileSystem/Ext2FileSystem.h
@@ -33,9 +33,6 @@ public:
bool is_symlink() const { return Kernel::is_symlink(m_raw_inode.i_mode); }
bool is_directory() const { return Kernel::is_directory(m_raw_inode.i_mode); }
- // ^Inode (RefCounted magic)
- virtual void one_ref_left() override;
-
private:
// ^Inode
virtual ErrorOr<size_t> read_bytes(off_t, size_t, UserOrKernelBuffer& buffer, OpenFileDescription*) const override;