diff options
Diffstat (limited to 'Kernel/FileSystem/FileDescription.cpp')
-rw-r--r-- | Kernel/FileSystem/FileDescription.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Kernel/FileSystem/FileDescription.cpp b/Kernel/FileSystem/FileDescription.cpp index a17a6ee930..067941d09d 100644 --- a/Kernel/FileSystem/FileDescription.cpp +++ b/Kernel/FileSystem/FileDescription.cpp @@ -6,7 +6,6 @@ #include <Kernel/FileSystem/FileDescription.h> #include <Kernel/FileSystem/FileSystem.h> #include <Kernel/FileSystem/InodeFile.h> -#include <Kernel/FileSystem/SharedMemory.h> #include <Kernel/Net/Socket.h> #include <Kernel/Process.h> #include <Kernel/TTY/MasterPTY.h> @@ -244,25 +243,6 @@ KResult FileDescription::truncate(off_t length) return m_file->truncate(length); } -bool FileDescription::is_shared_memory() const -{ - return m_file->is_shared_memory(); -} - -SharedMemory* FileDescription::shared_memory() -{ - if (!is_shared_memory()) - return nullptr; - return static_cast<SharedMemory*>(m_file.ptr()); -} - -const SharedMemory* FileDescription::shared_memory() const -{ - if (!is_shared_memory()) - return nullptr; - return static_cast<const SharedMemory*>(m_file.ptr()); -} - bool FileDescription::is_fifo() const { return m_file->is_fifo(); |