1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +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

@ -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();