diff --git a/Kernel/Arch/PC/BIOS.h b/Kernel/Arch/PC/BIOS.h index 486db3a17e0..2981df91c6c 100644 --- a/Kernel/Arch/PC/BIOS.h +++ b/Kernel/Arch/PC/BIOS.h @@ -70,7 +70,6 @@ protected: class DMIEntryPointExposedBlob : public BIOSSysFSComponent { public: static NonnullRefPtr create(PhysicalAddress dmi_entry_point, size_t blob_size); - virtual size_t size() const override { return m_dmi_entry_point_length; } private: DMIEntryPointExposedBlob(PhysicalAddress dmi_entry_point, size_t blob_size); @@ -82,7 +81,6 @@ private: class SMBIOSExposedTable : public BIOSSysFSComponent { public: static NonnullRefPtr create(PhysicalAddress, size_t blob_size); - virtual size_t size() const override { return m_smbios_structure_table_length; } private: SMBIOSExposedTable(PhysicalAddress dmi_entry_point, size_t blob_size); diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp index 3174af40e9b..fb5e51d068b 100644 --- a/Kernel/FileSystem/ProcFS.cpp +++ b/Kernel/FileSystem/ProcFS.cpp @@ -163,7 +163,7 @@ InodeMetadata ProcFSGlobalInode::metadata() const metadata.mode = S_IFREG | m_associated_component->required_mode(); metadata.uid = m_associated_component->owner_user(); metadata.gid = m_associated_component->owner_group(); - metadata.size = m_associated_component->size(); + metadata.size = 0; metadata.mtime = m_associated_component->modified_time(); return metadata; } diff --git a/Kernel/FileSystem/SysFS.cpp b/Kernel/FileSystem/SysFS.cpp index ed925c93b83..32af2e03912 100644 --- a/Kernel/FileSystem/SysFS.cpp +++ b/Kernel/FileSystem/SysFS.cpp @@ -119,7 +119,7 @@ InodeMetadata SysFSInode::metadata() const metadata.mode = S_IFREG | S_IRUSR | S_IRGRP | S_IROTH; metadata.uid = 0; metadata.gid = 0; - metadata.size = m_associated_component->size(); + metadata.size = 0; metadata.mtime = mepoch; return metadata; } diff --git a/Kernel/FileSystem/SysFSComponent.h b/Kernel/FileSystem/SysFSComponent.h index 3bbf6019c98..3e29138a5f3 100644 --- a/Kernel/FileSystem/SysFSComponent.h +++ b/Kernel/FileSystem/SysFSComponent.h @@ -25,7 +25,6 @@ public: virtual KResult traverse_as_directory(unsigned, Function) const { VERIFY_NOT_REACHED(); } virtual RefPtr lookup(StringView) { VERIFY_NOT_REACHED(); }; virtual KResultOr write_bytes(off_t, size_t, UserOrKernelBuffer const&, FileDescription*) { return EROFS; } - virtual size_t size() const { return 0; } virtual NonnullRefPtr to_inode(SysFS const&) const; diff --git a/Kernel/ProcessExposed.h b/Kernel/ProcessExposed.h index c74cfc983f3..968a3b5e25a 100644 --- a/Kernel/ProcessExposed.h +++ b/Kernel/ProcessExposed.h @@ -70,7 +70,6 @@ public: virtual KResult traverse_as_directory(unsigned, Function) const { VERIFY_NOT_REACHED(); } virtual KResultOr> lookup(StringView) { VERIFY_NOT_REACHED(); }; virtual KResultOr write_bytes(off_t, size_t, const UserOrKernelBuffer&, FileDescription*) { return KResult(EROFS); } - virtual size_t size() const { return 0; } virtual mode_t required_mode() const { return 0444; } virtual UserID owner_user() const { return 0; }