From a4b3bf1d63ad02703e1a474b949398c6aa186b1b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 11 Jan 2022 00:42:35 +0100 Subject: [PATCH] Kernel: Remove empty Ext2FSInode::one_ref_left() --- Kernel/FileSystem/Ext2FileSystem.cpp | 5 ----- Kernel/FileSystem/Ext2FileSystem.h | 3 --- 2 files changed, 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> 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 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 read_bytes(off_t, size_t, UserOrKernelBuffer& buffer, OpenFileDescription*) const override;