1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 13:27:34 +00:00

Everywhere: Remove unnecessary debug comments.

It would be tempting to uncomment these statements, but that won't work
with the new changes.

This was done with the following commands:

    find . \( -name '*.cpp' -o -name '*.h' -o -name '*.in' \) -not -path './Toolchain/*' -not -path './Build/*' -exec awk -i inplace '$0 !~ /\/\/#define/ { if (!toggle) { print; } else { toggle = !toggle } } ; $0 ~/\/\/#define/ { toggle = 1 }' {} \;

    find . \( -name '*.cpp' -o -name '*.h' -o -name '*.in' \) -not -path './Toolchain/*' -not -path './Build/*' -exec awk -i inplace '$0 !~ /\/\/ #define/ { if (!toggle) { print; } else { toggle = !toggle } } ; $0 ~/\/\/ #define/ { toggle = 1 }' {} \;
This commit is contained in:
asynts 2021-01-23 23:45:29 +01:00 committed by Andreas Kling
parent 1a3a0836c0
commit acdcf59a33
90 changed files with 0 additions and 200 deletions

View file

@ -30,8 +30,6 @@
#include <Kernel/Net/E1000NetworkAdapter.h>
#include <Kernel/Thread.h>
//#define E1000_DEBUG
namespace Kernel {
// clang-format off

View file

@ -43,8 +43,6 @@
#include <LibC/errno_numbers.h>
#include <LibC/sys/ioctl_numbers.h>
//#define IPV4_SOCKET_DEBUG
namespace Kernel {
static AK::Singleton<Lockable<HashTable<IPv4Socket*>>> s_table;

View file

@ -35,8 +35,6 @@
#include <Kernel/UnixTypes.h>
#include <LibC/errno_numbers.h>
//#define DEBUG_LOCAL_SOCKET
namespace Kernel {
static AK::Singleton<Lockable<InlineLinkedList<LocalSocket>>> s_list;

View file

@ -40,15 +40,6 @@
#include <Kernel/Net/UDPSocket.h>
#include <Kernel/Process.h>
//#define NETWORK_TASK_DEBUG
//#define ETHERNET_DEBUG
//#define ETHERNET_VERY_DEBUG
//#define ARP_DEBUG
//#define IPV4_DEBUG
//#define ICMP_DEBUG
//#define UDP_DEBUG
//#define TCP_DEBUG
namespace Kernel {
static void handle_arp(const EthernetFrameHeader&, size_t frame_size);

View file

@ -28,8 +28,6 @@
#include <Kernel/IO.h>
#include <Kernel/Net/RTL8139NetworkAdapter.h>
//#define RTL8139_DEBUG
namespace Kernel {
#define REG_MAC 0x00

View file

@ -30,8 +30,6 @@
#include <Kernel/Net/Routing.h>
#include <Kernel/Thread.h>
//#define ROUTING_DEBUG
namespace Kernel {
static AK::Singleton<Lockable<HashMap<IPv4Address, MACAddress>>> s_arp_table;

View file

@ -35,8 +35,6 @@
#include <Kernel/UnixTypes.h>
#include <LibC/errno_numbers.h>
//#define SOCKET_DEBUG
namespace Kernel {
KResultOr<NonnullRefPtr<Socket>> Socket::create(int domain, int type, int protocol)

View file

@ -36,8 +36,6 @@
#include <Kernel/Process.h>
#include <Kernel/Random.h>
//#define TCP_SOCKET_DEBUG
namespace Kernel {
void TCPSocket::for_each(Function<void(const TCPSocket&)> callback)