diff --git a/Kernel/FileSystem/FIFO.cpp b/Kernel/FileSystem/FIFO.cpp index 27c272eb45..4c349c6b79 100644 --- a/Kernel/FileSystem/FIFO.cpp +++ b/Kernel/FileSystem/FIFO.cpp @@ -5,25 +5,15 @@ */ #include -#include -#include #include #include #include #include -#include #include #include namespace Kernel { -static Singleton>> s_table; - -static ProtectedValue>& all_fifos() -{ - return *s_table; -} - static Atomic s_next_fifo_id = 1; RefPtr FIFO::try_create(uid_t uid) @@ -79,9 +69,6 @@ FIFO::FIFO(uid_t uid, NonnullOwnPtr buffer) : m_buffer(move(buffer)) , m_uid(uid) { - all_fifos().with_exclusive([&](auto& table) { - table.set(this); - }); m_fifo_id = ++s_next_fifo_id; // Use the same block condition for read and write @@ -92,9 +79,6 @@ FIFO::FIFO(uid_t uid, NonnullOwnPtr buffer) FIFO::~FIFO() { - all_fifos().with_exclusive([&](auto& table) { - table.remove(this); - }); } void FIFO::attach(Direction direction)