1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:57:43 +00:00

Kernel: Remove ancient FIFO_DEBUG code

This commit is contained in:
Andreas Kling 2021-03-09 20:17:25 +01:00
parent a265ea98b9
commit 2fc684f6bc
3 changed files with 0 additions and 18 deletions

View file

@ -28,7 +28,6 @@
#include <AK/Singleton.h>
#include <AK/StdLibExtras.h>
#include <AK/StringView.h>
#include <Kernel/Debug.h>
#include <Kernel/FileSystem/FIFO.h>
#include <Kernel/FileSystem/FileDescription.h>
#include <Kernel/Lock.h>
@ -115,14 +114,8 @@ void FIFO::attach(Direction direction)
{
if (direction == Direction::Reader) {
++m_readers;
#if FIFO_DEBUG
klog() << "open reader (" << m_readers << ")";
#endif
} else if (direction == Direction::Writer) {
++m_writers;
#if FIFO_DEBUG
klog() << "open writer (" << m_writers << ")";
#endif
}
evaluate_block_conditions();
@ -131,15 +124,9 @@ void FIFO::attach(Direction direction)
void FIFO::detach(Direction direction)
{
if (direction == Direction::Reader) {
#if FIFO_DEBUG
klog() << "close reader (" << m_readers << " - 1)";
#endif
VERIFY(m_readers);
--m_readers;
} else if (direction == Direction::Writer) {
#if FIFO_DEBUG
klog() << "close writer (" << m_writers << " - 1)";
#endif
VERIFY(m_writers);
--m_writers;
}