Maelstrom: Removed some debug code

https://github.com/libsdl-org/Maelstrom/commit/c3a46bd66467e2a2c506387949f035b94572c701

From c3a46bd66467e2a2c506387949f035b94572c701 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 27 Oct 2011 23:15:35 -0400
Subject: [PATCH] Removed some debug code

---
 UIElementKeyButton.cpp      |  4 ----
 UIElementLabel.cpp          |  4 ----
 main.cpp                    |  3 ---
 screenlib/SDL_FrameBuf.h    | 10 ----------
 screenlib/UIElementLine.cpp |  3 ---
 5 files changed, 24 deletions(-)

diff --git a/UIElementKeyButton.cpp b/UIElementKeyButton.cpp
index bf2aaeb6..7bb5bd47 100644
--- a/UIElementKeyButton.cpp
+++ b/UIElementKeyButton.cpp
@@ -44,10 +44,6 @@ void
 UIElementKeyButton::Draw()
 {
 	m_screen->QueueBlit(m_rect.x, m_rect.y, gKeyIcon, NOCLIP);
-#ifdef UI_DEBUG
-printf("KeyButton: %s at %d,%d\n", SDL_GetKeyName(m_hotkey), m_rect.x+14, m_rect.y+10);
-printf("KeyButton: %s at %d,%d\n", SDL_GetKeyName(m_hotkey), m_rect.x+13, m_rect.y+9);
-#endif
 	m_screen->QueueBlit(m_rect.x+14, m_rect.y+10, m_textShadow, NOCLIP);
 	m_screen->QueueBlit(m_rect.x+13, m_rect.y+9, m_text, NOCLIP);
 }
diff --git a/UIElementLabel.cpp b/UIElementLabel.cpp
index 857adc80..9402b466 100644
--- a/UIElementLabel.cpp
+++ b/UIElementLabel.cpp
@@ -110,10 +110,6 @@ UIElementLabel::SetText(const char *text)
 	m_rect.w = m_screen->GetImageWidth(m_texture);
 	m_rect.h = m_screen->GetImageHeight(m_texture);
 	CalculateAnchor();
-#ifdef UI_DEBUG
-if (m_rect.x)
-printf("Label: '%s' %d,%d\n", m_text, m_rect.x, m_rect.y);
-#endif
 }
 
 void
diff --git a/main.cpp b/main.cpp
index b943afb9..a2396954 100644
--- a/main.cpp
+++ b/main.cpp
@@ -352,9 +352,6 @@ int DrawText(int x, int y, const char *text, MFont *font, Uint8 style,
 	if ( textimage == NULL ) {
 		width = 0;
 	} else {
-#ifdef UI_DEBUG
-printf("DrawText: %d,%d '%s'\n", x, y-screen->GetImageHeight(textimage)+2, text);
-#endif
 		screen->QueueBlit(x, y-screen->GetImageHeight(textimage)+2, textimage, NOCLIP);
 		width = screen->GetImageWidth(textimage);
 		fontserv->FreeText(textimage);
diff --git a/screenlib/SDL_FrameBuf.h b/screenlib/SDL_FrameBuf.h
index 03f9de20..1a440be8 100644
--- a/screenlib/SDL_FrameBuf.h
+++ b/screenlib/SDL_FrameBuf.h
@@ -88,10 +88,6 @@ class FrameBuf : public ErrorBase {
 	void QueueBlit(int x, int y, SDL_Texture *src, clipval do_clip = DOCLIP) {
 		int w, h;
 		SDL_QueryTexture(src, NULL, NULL, &w, &h);
-#ifdef UI_DEBUG
-if(w == 32 && h == 32)
-printf("QueueBlit: %d,%d - %dx%d\n", x, y, w, h);
-#endif
 		QueueBlit(x, y, src, 0, 0, w, h, do_clip);
 	}
 	void Update() {
@@ -122,18 +118,12 @@ printf("QueueBlit: %d,%d - %dx%d\n", x, y, w, h);
 		SDL_RenderDrawPoint(renderer, x, y);
 	}
 	void DrawLine(int x1, int y1, int x2, int y2, Uint32 color) {
-#ifdef UI_DEBUG
-printf("DrawLine: %d,%d - %d,%d\n", x1, y1, x2, y2);
-#endif
 		UpdateDrawColor(color);
 		SDL_RenderDrawLine(renderer, x1, y1, x2, y2);
 	}
 	void DrawRect(int x1, int y1, int w, int h, Uint32 color) {
 		UpdateDrawColor(color);
 
-#ifdef UI_DEBUG
-printf("DrawRect: %d,%d - %dx%d\n", x1, y1, w, h);
-#endif
 		SDL_Rect rect;
 		rect.x = x1;
 		rect.y = y1;
diff --git a/screenlib/UIElementLine.cpp b/screenlib/UIElementLine.cpp
index 7dc87f08..3d327cd1 100644
--- a/screenlib/UIElementLine.cpp
+++ b/screenlib/UIElementLine.cpp
@@ -31,8 +31,5 @@ UIElementLine::Load(rapidxml::xml_node<> *node, const UITemplates *templates)
 void
 UIElementLine::Draw()
 {
-#ifdef UI_DEBUG
-printf("Line::Draw() %d,%d %dx%d\n", m_rect.x, m_rect.y, m_rect.w, m_rect.h);
-#endif
 	m_screen->DrawLine(m_rect.x, m_rect.y, m_rect.x+m_rect.w-1, m_rect.y+m_rect.h-1, m_color);
 }