diff options
author | asynts <asynts@gmail.com> | 2021-01-23 23:45:29 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-25 09:47:36 +0100 |
commit | acdcf59a333b0fe9a709ee53b2a82b26b346b747 (patch) | |
tree | 88d7ab0c97a5b5174331ba0d7d7a9071ebac04cc /Userland/Services | |
parent | 1a3a0836c017ab5e5672472033f3ff369dc33c39 (diff) | |
download | serenity-acdcf59a333b0fe9a709ee53b2a82b26b346b747.zip |
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 }' {} \;
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/LookupServer/LookupServer.cpp | 2 | ||||
-rw-r--r-- | Userland/Services/Taskbar/TaskbarWindow.cpp | 2 | ||||
-rw-r--r-- | Userland/Services/WindowServer/EventLoop.cpp | 2 | ||||
-rw-r--r-- | Userland/Services/WindowServer/WindowManager.cpp | 7 |
4 files changed, 0 insertions, 13 deletions
diff --git a/Userland/Services/LookupServer/LookupServer.cpp b/Userland/Services/LookupServer/LookupServer.cpp index 657cbc23ec..e123e8eef2 100644 --- a/Userland/Services/LookupServer/LookupServer.cpp +++ b/Userland/Services/LookupServer/LookupServer.cpp @@ -40,8 +40,6 @@ #include <sys/time.h> #include <unistd.h> -//#define LOOKUPSERVER_DEBUG - LookupServer::LookupServer() { auto config = Core::ConfigFile::get_for_system("LookupServer"); diff --git a/Userland/Services/Taskbar/TaskbarWindow.cpp b/Userland/Services/Taskbar/TaskbarWindow.cpp index 76bd02647d..b84e581ea9 100644 --- a/Userland/Services/Taskbar/TaskbarWindow.cpp +++ b/Userland/Services/Taskbar/TaskbarWindow.cpp @@ -41,8 +41,6 @@ #include <serenity.h> #include <stdio.h> -//#define EVENT_DEBUG - class TaskbarWidget final : public GUI::Widget { C_OBJECT(TaskbarWidget); diff --git a/Userland/Services/WindowServer/EventLoop.cpp b/Userland/Services/WindowServer/EventLoop.cpp index b8fdfcc3be..6b9a20904f 100644 --- a/Userland/Services/WindowServer/EventLoop.cpp +++ b/Userland/Services/WindowServer/EventLoop.cpp @@ -42,8 +42,6 @@ #include <time.h> #include <unistd.h> -//#define WSMESSAGELOOP_DEBUG - namespace WindowServer { EventLoop::EventLoop() diff --git a/Userland/Services/WindowServer/WindowManager.cpp b/Userland/Services/WindowServer/WindowManager.cpp index f4ce58524c..3e2cfeca05 100644 --- a/Userland/Services/WindowServer/WindowManager.cpp +++ b/Userland/Services/WindowServer/WindowManager.cpp @@ -52,11 +52,6 @@ #include <time.h> #include <unistd.h> -//#define WINDOWMANAGER_DEBUG -//#define RESIZE_DEBUG -//#define MOVE_DEBUG -//#define DOUBLECLICK_DEBUG - namespace WindowServer { static WindowManager* s_the; @@ -781,8 +776,6 @@ auto WindowManager::DoubleClickInfo::metadata_for_button(MouseButton button) -> } } -// #define DOUBLECLICK_DEBUG - bool WindowManager::is_considered_doubleclick(const MouseEvent& event, const DoubleClickInfo::ClickMetadata& metadata) const { int elapsed_since_last_click = metadata.clock.elapsed(); |