From 4cd4a2be79eb1dfd4ff7550df450652e0eec884d Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 26 May 2005 19:43:56 +0000 Subject: [PATCH] (svn r2367) Remove some unused functions, probably was some debug stuff --- ai.c | 2 +- sdl.c | 21 --------------------- ttd.c | 1 - 3 files changed, 1 insertion(+), 23 deletions(-) diff --git a/ai.c b/ai.c index 05f5a82f6b..33d0aa4161 100644 --- a/ai.c +++ b/ai.c @@ -3429,7 +3429,7 @@ static void AiStateBuildDefaultAirportBlocks(Player *p) MarkTileDirtyByTile(aib->use_tile); } #endif -// redsq_debug(aib->use_tile); +// SetRedErrorSquare(aib->use_tile); if (rule == -1) { // cannot build, terraform after a while diff --git a/sdl.c b/sdl.c index 92548d603e..48ff2d3914 100644 --- a/sdl.c +++ b/sdl.c @@ -686,25 +686,4 @@ const HalSoundDriver _sdl_sound_driver = { SdlSoundStop, }; - -#if 0 /* XXX what the heck is that? */ -#include "viewport.h" -void redsq_debug(int tile) -{ - _thd.redsq = tile; - MarkWholeScreenDirty(); - _screen.dst_ptr = _sdl_screen->pixels; - UpdateWindows(); - - SdlVideoMakeDirty(0,0,_screen.width,_screen.height); - DrawSurfaceToScreen(); -} - -static void DbgRedraw() -{ - SdlVideoMakeDirty(0,0,_screen.width,_screen.height); - DrawSurfaceToScreen(); -} -#endif - #endif /* WITH_SDL */ diff --git a/ttd.c b/ttd.c index c7cb42f02b..57792e8c5f 100644 --- a/ttd.c +++ b/ttd.c @@ -52,7 +52,6 @@ extern void SetDifficultyLevel(int mode, GameOptions *gm_opt); extern void DoStartupNewPlayer(bool is_ai); extern void ShowOSErrorBox(const char *buf); -void redsq_debug(int tile); bool LoadSavegame(const char *filename); extern void HalGameLoop(void);