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/Libraries/LibJS | |
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/Libraries/LibJS')
-rw-r--r-- | Userland/Libraries/LibJS/Heap/Heap.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibJS/Lexer.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Object.cpp | 2 |
3 files changed, 0 insertions, 6 deletions
diff --git a/Userland/Libraries/LibJS/Heap/Heap.cpp b/Userland/Libraries/LibJS/Heap/Heap.cpp index 8385b8ff1e..54964ae14e 100644 --- a/Userland/Libraries/LibJS/Heap/Heap.cpp +++ b/Userland/Libraries/LibJS/Heap/Heap.cpp @@ -37,8 +37,6 @@ #include <LibJS/Runtime/Object.h> #include <setjmp.h> -//#define HEAP_DEBUG - namespace JS { Heap::Heap(VM& vm) diff --git a/Userland/Libraries/LibJS/Lexer.cpp b/Userland/Libraries/LibJS/Lexer.cpp index 89758ded1c..a5c45fc572 100644 --- a/Userland/Libraries/LibJS/Lexer.cpp +++ b/Userland/Libraries/LibJS/Lexer.cpp @@ -31,8 +31,6 @@ #include <ctype.h> #include <stdio.h> -//#define LEXER_DEBUG - namespace JS { HashMap<String, TokenType> Lexer::s_keywords; diff --git a/Userland/Libraries/LibJS/Runtime/Object.cpp b/Userland/Libraries/LibJS/Runtime/Object.cpp index 87a9d75dd5..699733e00a 100644 --- a/Userland/Libraries/LibJS/Runtime/Object.cpp +++ b/Userland/Libraries/LibJS/Runtime/Object.cpp @@ -38,8 +38,6 @@ #include <LibJS/Runtime/StringObject.h> #include <LibJS/Runtime/Value.h> -//#define OBJECT_DEBUG - namespace JS { PropertyDescriptor PropertyDescriptor::from_dictionary(VM& vm, const Object& object) |