From ede1fa79229caa8998951bcac5edaa7a73e0ec59 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sat, 14 May 2011 19:19:48 +0100 Subject: [PATCH] Remove debug output --- src/Editor.cpp | 3 ++- src/GenTrack.cpp | 2 +- src/gui/ToggleBar.cpp | 4 +--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Editor.cpp b/src/Editor.cpp index 67f0389..4c866e6 100644 --- a/src/Editor.cpp +++ b/src/Editor.cpp @@ -447,12 +447,14 @@ void Editor::draw_dragged_track() } } +#if 0 debug(); debug() << "start_was_guess=" << start_was_guess << " end_was_guess=" << end_was_guess; debug() << "drag_begin=" << drag_begin << " drag_end=" << drag_end; debug() << "start_dir=" << start_dir << " end_dir=" << end_dir; +#endif if (xlen == 1 && ylen == 1) { // A single tile @@ -470,7 +472,6 @@ void Editor::draw_dragged_track() Point delta = drag_end - drag_begin; VectorI off = make_vector(delta.x, delta.y, 0); - debug() << "off=" << off; ITrackSegmentPtr track = make_gen_track(off, start_dir, diff --git a/src/GenTrack.cpp b/src/GenTrack.cpp index cb61673..9cf0026 100644 --- a/src/GenTrack.cpp +++ b/src/GenTrack.cpp @@ -196,7 +196,7 @@ void GenTrack::render() const glPopMatrix(); #endif -#if 1 +#if 0 // Draw control points glPushMatrix(); glPushAttrib(GL_LINE_BIT); diff --git a/src/gui/ToggleBar.cpp b/src/gui/ToggleBar.cpp index 155e2d6..80548e7 100644 --- a/src/gui/ToggleBar.cpp +++ b/src/gui/ToggleBar.cpp @@ -1,5 +1,5 @@ // -// Copyright (C) 2009 Nick Gasson +// Copyright (C) 2009, 2011 Nick Gasson // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -41,8 +41,6 @@ void ToggleBar::render(RenderContext& rc) const void ToggleBar::child_added(Widget* w) { - debug() << "Added " << w->name() << " to toggle bar"; - w->x(nextX); w->y(0); w->width(button_width); -- 2.39.2