From b21348379f6950a49380235146e0c4fdff049751 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 21 Mar 2023 18:19:48 +0200 Subject: [PATCH] Kernel: Remove obsolete Ext2FS::ext2_root_inode() This was not used by anyone and the cast was wrong anyway --- kernel/include/kernel/FS/Ext2.h | 4 +--- kernel/kernel/FS/Ext2.cpp | 5 ----- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/kernel/include/kernel/FS/Ext2.h b/kernel/include/kernel/FS/Ext2.h index 9e1a272b..6fde635b 100644 --- a/kernel/include/kernel/FS/Ext2.h +++ b/kernel/include/kernel/FS/Ext2.h @@ -142,7 +142,7 @@ namespace Kernel private: BAN::ErrorOr data_block_index(uint32_t); - + uint32_t index() const { return m_index; } private: @@ -185,8 +185,6 @@ namespace Kernel const Ext2::Superblock& superblock() const { return m_superblock; } - const Ext2::Inode& ext2_root_inode() const; - private: StorageDevice::Partition& m_partition; diff --git a/kernel/kernel/FS/Ext2.cpp b/kernel/kernel/FS/Ext2.cpp index c938ae95..7a415131 100644 --- a/kernel/kernel/FS/Ext2.cpp +++ b/kernel/kernel/FS/Ext2.cpp @@ -480,9 +480,4 @@ namespace Kernel return block_buffer; } - const Ext2::Inode& Ext2FS::ext2_root_inode() const - { - return reinterpret_cast(m_root_inode.ptr())->m_inode; - } - } \ No newline at end of file