mirror of
https://github.com/RGBCube/serenity
synced 2025-08-13 12:27:48 +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:
parent
1a3a0836c0
commit
acdcf59a33
90 changed files with 0 additions and 200 deletions
|
@ -37,8 +37,6 @@
|
|||
#include <LibGfx/PNGWriter.h>
|
||||
#include <stdio.h>
|
||||
|
||||
//#define PAINT_DEBUG
|
||||
|
||||
namespace PixelPaint {
|
||||
|
||||
RefPtr<Image> Image::create_with_size(const Gfx::IntSize& size)
|
||||
|
|
|
@ -41,8 +41,6 @@
|
|||
#include <LibJS/Runtime/Function.h>
|
||||
#include <ctype.h>
|
||||
|
||||
//#define COPY_DEBUG
|
||||
|
||||
namespace Spreadsheet {
|
||||
|
||||
Sheet::Sheet(const StringView& name, Workbook& workbook)
|
||||
|
|
|
@ -51,8 +51,6 @@
|
|||
#include <LibWeb/OutOfProcessWebView.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
// #define EDITOR_DEBUG
|
||||
|
||||
namespace HackStudio {
|
||||
|
||||
Editor::Editor()
|
||||
|
|
|
@ -34,8 +34,6 @@
|
|||
#include <LibGfx/FontDatabase.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
|
||||
// #define DEBUG_DIFF
|
||||
|
||||
namespace HackStudio {
|
||||
|
||||
DiffViewer::~DiffViewer()
|
||||
|
|
|
@ -28,8 +28,6 @@
|
|||
#include <AK/HashTable.h>
|
||||
#include <LibCpp/Lexer.h>
|
||||
|
||||
// #define DEBUG_AUTOCOMPLETE
|
||||
|
||||
namespace LanguageServers::Cpp {
|
||||
|
||||
Vector<GUI::AutocompleteProvider::Entry> AutoComplete::get_suggestions(const String& code, const GUI::TextPosition& autocomplete_position)
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
#include <Shell/Parser.h>
|
||||
#include <Shell/Shell.h>
|
||||
|
||||
// #define DEBUG_AUTOCOMPLETE
|
||||
|
||||
namespace LanguageServers::Shell {
|
||||
|
||||
Vector<GUI::AutocompleteProvider::Entry> AutoComplete::get_suggestions(const String& code, size_t offset)
|
||||
|
|
|
@ -33,8 +33,6 @@
|
|||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
|
||||
//#define GENERATE_DEBUG_CODE
|
||||
|
||||
struct Parameter {
|
||||
Vector<String> attributes;
|
||||
String type;
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
#include <mallocdefs.h>
|
||||
#include <string.h>
|
||||
|
||||
//#define REACHABLE_DEBUG
|
||||
|
||||
namespace UserspaceEmulator {
|
||||
|
||||
MallocTracer::MallocTracer(Emulator& emulator)
|
||||
|
|
|
@ -42,8 +42,6 @@
|
|||
_exit(0); \
|
||||
} while (0)
|
||||
|
||||
//#define MEMORY_DEBUG
|
||||
|
||||
#define DEFINE_GENERIC_SHIFT_ROTATE_INSN_HANDLERS(mnemonic, op) \
|
||||
void SoftCPU::mnemonic##_RM8_1(const X86::Instruction& insn) { generic_RM8_1(op<ValueWithShadow<u8>>, insn); } \
|
||||
void SoftCPU::mnemonic##_RM8_CL(const X86::Instruction& insn) { generic_RM8_CL(op<ValueWithShadow<u8>>, insn); } \
|
||||
|
|
|
@ -45,8 +45,6 @@
|
|||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
// #define DYNAMIC_LOAD_VERBOSE
|
||||
|
||||
#ifdef DYNAMIC_LOAD_VERBOSE
|
||||
# define VERBOSE(fmt, ...) dbgprintf(fmt, ##__VA_ARGS__)
|
||||
#else
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <sys/internals.h>
|
||||
|
||||
//#define GLOBAL_DTORS_DEBUG
|
||||
|
||||
extern "C" {
|
||||
|
||||
struct __exit_entry {
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
|
||||
// FIXME: Thread safety.
|
||||
|
||||
//#define MALLOC_DEBUG
|
||||
#define RECYCLE_BIG_ALLOCATIONS
|
||||
|
||||
#define PAGE_ROUND_UP(x) ((((size_t)(x)) + PAGE_SIZE - 1) & (~(PAGE_SIZE - 1)))
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
#include <string.h>
|
||||
#include <termcap.h>
|
||||
|
||||
//#define TERMCAP_DEBUG
|
||||
|
||||
extern "C" {
|
||||
|
||||
char PC;
|
||||
|
|
|
@ -30,8 +30,6 @@
|
|||
#include <LibCore/EventLoop.h>
|
||||
#include <LibCore/File.h>
|
||||
|
||||
// #define UCI_DEBUG
|
||||
|
||||
namespace Chess::UCI {
|
||||
|
||||
Endpoint::Endpoint(NonnullRefPtr<Core::IODevice> in, NonnullRefPtr<Core::IODevice> out)
|
||||
|
|
|
@ -35,8 +35,6 @@
|
|||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
|
||||
// #define DBG_FAILED_COMMANDS
|
||||
|
||||
namespace Core {
|
||||
|
||||
// Only supported in serenity mode because we use `posix_spawn_file_actions_addchdir`
|
||||
|
|
|
@ -54,9 +54,6 @@
|
|||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
//#define EVENTLOOP_DEBUG
|
||||
//#define DEFERRED_INVOKE_DEBUG
|
||||
|
||||
namespace Core {
|
||||
|
||||
class RPCClient;
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
#include <AK/Random.h>
|
||||
#include <LibCrypto/BigInt/UnsignedBigInteger.h>
|
||||
|
||||
//#define NT_DEBUG
|
||||
|
||||
namespace Crypto {
|
||||
namespace NumberTheory {
|
||||
|
||||
|
|
|
@ -46,8 +46,6 @@
|
|||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
// #define DYNAMIC_LOAD_VERBOSE
|
||||
|
||||
#ifdef DYNAMIC_LOAD_VERBOSE
|
||||
# define VERBOSE(fmt, ...) dbgprintf(fmt, ##__VA_ARGS__)
|
||||
#else
|
||||
|
|
|
@ -40,8 +40,6 @@
|
|||
# define DYNAMIC_LOAD_DEBUG
|
||||
#endif
|
||||
|
||||
// #define DYNAMIC_LOAD_VERBOSE
|
||||
|
||||
#ifdef DYNAMIC_LOAD_VERBOSE
|
||||
# define VERBOSE(fmt, ...) dbgprintf(fmt, ##__VA_ARGS__)
|
||||
#else
|
||||
|
|
|
@ -33,8 +33,6 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
// #define DYNAMIC_OBJECT_VERBOSE
|
||||
|
||||
#ifdef DYNAMIC_OBJECT_VERBOSE
|
||||
# define VERBOSE(fmt, ...) dbgprintf(fmt, ##__VA_ARGS__)
|
||||
#else
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
#include <LibELF/Image.h>
|
||||
#include <LibELF/Validation.h>
|
||||
|
||||
//#define ELF_IMAGE_DEBUG
|
||||
|
||||
namespace ELF {
|
||||
|
||||
Image::Image(ReadonlyBytes bytes, bool verbose_logging)
|
||||
|
|
|
@ -30,8 +30,6 @@
|
|||
#include <LibGfx/Orientation.h>
|
||||
#include <stdio.h>
|
||||
|
||||
//#define GBOXLAYOUT_DEBUG
|
||||
|
||||
REGISTER_WIDGET(GUI, HorizontalBoxLayout)
|
||||
REGISTER_WIDGET(GUI, VerticalBoxLayout)
|
||||
|
||||
|
|
|
@ -34,8 +34,6 @@
|
|||
#include <LibGUI/ScrollBar.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
|
||||
//#define DRAGDROP_DEBUG
|
||||
|
||||
namespace GUI {
|
||||
|
||||
IconView::IconView()
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
#include <LibGUI/WindowServerConnection.h>
|
||||
#include <LibGfx/Bitmap.h>
|
||||
|
||||
//#define MENU_DEBUG
|
||||
|
||||
namespace GUI {
|
||||
|
||||
static HashMap<int, Menu*>& all_menus()
|
||||
|
|
|
@ -50,8 +50,6 @@
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
//#define DEBUG_TEXTEDITOR
|
||||
|
||||
REGISTER_WIDGET(GUI, TextEditor)
|
||||
|
||||
namespace GUI {
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
#include <LibGfx/Bitmap.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
|
||||
//#define DEBUG_ITEM_RECTS
|
||||
|
||||
REGISTER_WIDGET(GUI, TreeView)
|
||||
|
||||
namespace GUI {
|
||||
|
|
|
@ -45,8 +45,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
//#define UPDATE_COALESCING_DEBUG
|
||||
|
||||
namespace GUI {
|
||||
|
||||
static i32 s_next_backing_store_serial;
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
//#define GEMINIJOB_DEBUG
|
||||
|
||||
namespace Gemini {
|
||||
|
||||
void GeminiJob::start()
|
||||
|
|
|
@ -36,8 +36,6 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
//#define ICO_DEBUG
|
||||
|
||||
namespace Gfx {
|
||||
|
||||
// FIXME: This is in little-endian order. Maybe need a NetworkOrdered<T> equivalent eventually.
|
||||
|
|
|
@ -1536,8 +1536,6 @@ void Painter::stroke_path(const Path& path, Color color, int thickness)
|
|||
}
|
||||
}
|
||||
|
||||
//#define FILL_PATH_DEBUG
|
||||
|
||||
[[maybe_unused]] static void approximately_place_on_int_grid(FloatPoint ffrom, FloatPoint fto, IntPoint& from, IntPoint& to, Optional<IntPoint> previous_to)
|
||||
{
|
||||
auto diffs = fto - ffrom;
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
//#define HTTPJOB_DEBUG
|
||||
|
||||
namespace HTTP {
|
||||
void HttpJob::start()
|
||||
{
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
//#define HTTPSJOB_DEBUG
|
||||
|
||||
namespace HTTP {
|
||||
|
||||
void HttpsJob::start()
|
||||
|
|
|
@ -37,8 +37,6 @@
|
|||
#include <LibJS/Runtime/Object.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
//#define HEAP_DEBUG
|
||||
|
||||
namespace JS {
|
||||
|
||||
Heap::Heap(VM& vm)
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
|
||||
//#define LEXER_DEBUG
|
||||
|
||||
namespace JS {
|
||||
|
||||
HashMap<String, TokenType> Lexer::s_keywords;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -45,8 +45,6 @@
|
|||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
// #define SUGGESTIONS_DEBUG
|
||||
|
||||
namespace {
|
||||
constexpr u32 ctrl(char c) { return c & 0x3f; }
|
||||
}
|
||||
|
|
|
@ -38,8 +38,6 @@
|
|||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
//#define PTHREAD_DEBUG
|
||||
|
||||
namespace {
|
||||
using PthreadAttrImpl = Syscall::SC_create_thread_params;
|
||||
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
#include <LibVT/Terminal.h>
|
||||
#include <string.h>
|
||||
|
||||
//#define TERMINAL_DEBUG
|
||||
|
||||
namespace VT {
|
||||
|
||||
Terminal::Terminal(TerminalClient& client)
|
||||
|
|
|
@ -59,8 +59,6 @@
|
|||
#include <sys/ioctl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
//#define TERMINAL_DEBUG
|
||||
|
||||
void TerminalWidget::set_pty_master_fd(int fd)
|
||||
{
|
||||
m_ptm_fd = fd;
|
||||
|
|
|
@ -46,8 +46,6 @@
|
|||
#include <LibWeb/Layout/Node.h>
|
||||
#include <LibWeb/Layout/TextNode.h>
|
||||
|
||||
//#define EVENT_DEBUG
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
Node::Node(Document& document, NodeType type)
|
||||
|
|
|
@ -24,8 +24,6 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
//#define PARSER_DEBUG
|
||||
|
||||
#include <AK/Debug.h>
|
||||
#include <AK/Utf32View.h>
|
||||
#include <LibTextCodec/Decoder.h>
|
||||
|
|
|
@ -57,8 +57,6 @@
|
|||
#include <LibWeb/UIEvents/MouseEvent.h>
|
||||
#include <stdio.h>
|
||||
|
||||
//#define SELECTION_DEBUG
|
||||
|
||||
REGISTER_WIDGET(Web, InProcessWebView)
|
||||
|
||||
namespace Web {
|
||||
|
|
|
@ -35,8 +35,6 @@
|
|||
#include <LibWeb/Layout/InitialContainingBlockBox.h>
|
||||
#include <LibWeb/Page/Frame.h>
|
||||
|
||||
//#define DEBUG_HIGHLIGHT_FOCUSED_FRAME
|
||||
|
||||
namespace Web::Layout {
|
||||
|
||||
FrameBox::FrameBox(DOM::Document& document, DOM::Element& element, NonnullRefPtr<CSS::StyleProperties> style)
|
||||
|
|
|
@ -40,8 +40,6 @@
|
|||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
//#define LOOKUPSERVER_DEBUG
|
||||
|
||||
LookupServer::LookupServer()
|
||||
{
|
||||
auto config = Core::ConfigFile::get_for_system("LookupServer");
|
||||
|
|
|
@ -41,8 +41,6 @@
|
|||
#include <serenity.h>
|
||||
#include <stdio.h>
|
||||
|
||||
//#define EVENT_DEBUG
|
||||
|
||||
class TaskbarWidget final : public GUI::Widget {
|
||||
C_OBJECT(TaskbarWidget);
|
||||
|
||||
|
|
|
@ -42,8 +42,6 @@
|
|||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
//#define WSMESSAGELOOP_DEBUG
|
||||
|
||||
namespace WindowServer {
|
||||
|
||||
EventLoop::EventLoop()
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -36,8 +36,6 @@
|
|||
#include <fcntl.h>
|
||||
#include <signal.h>
|
||||
|
||||
//#define EXECUTE_DEBUG
|
||||
|
||||
void AK::Formatter<Shell::AST::Command>::format(FormatBuilder& builder, const Shell::AST::Command& value)
|
||||
{
|
||||
if (m_sign_mode != FormatBuilder::SignMode::Default)
|
||||
|
|
|
@ -56,8 +56,6 @@
|
|||
static bool s_disable_hyperlinks = false;
|
||||
extern char** environ;
|
||||
|
||||
//#define SH_DEBUG
|
||||
|
||||
namespace Shell {
|
||||
|
||||
// FIXME: This should eventually be removed once we've established that
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue