--- a/command.c Tue Jul 26 19:31:05 2005 +0000
+++ b/command.c Tue Jul 26 19:34:03 2005 +0000
@@ -321,8 +321,6 @@
}
-//extern void _stdcall Sleep(int s);
-
int32 DoCommand(int x, int y, uint32 p1, uint32 p2, uint32 flags, uint procc)
{
int32 res;
--- a/engine.c Tue Jul 26 19:31:05 2005 +0000
+++ b/engine.c Tue Jul 26 19:34:03 2005 +0000
@@ -647,8 +647,6 @@
static byte _vsg_random_triggers;
static byte _vsg_bits_to_reseed;
-extern int _custom_sprites_base;
-
static SpriteGroup *TriggerVehicleSpriteGroup(SpriteGroup *spritegroup,
Vehicle *veh, uint16 callback_info, resolve_callback resolve_func)
{
--- a/gfx.c Tue Jul 26 19:31:05 2005 +0000
+++ b/gfx.c Tue Jul 26 19:34:03 2005 +0000
@@ -1729,8 +1729,6 @@
}
#endif
-extern bool _dbg_screen_rect;
-
void RedrawScreenRect(int left, int top, int right, int bottom)
{
assert(right <= _screen.width && bottom <= _screen.height);
--- a/intro_gui.c Tue Jul 26 19:31:05 2005 +0000
+++ b/intro_gui.c Tue Jul 26 19:34:03 2005 +0000
@@ -16,10 +16,6 @@
extern void SwitchMode(int new_mode);
-#if 0
-static void ShowSelectTutorialWindow() {}
-#endif
-
static const Widget _select_game_widgets[] = {
{ WWT_CAPTION, RESIZE_NONE, 13, 0, 335, 0, 13, STR_0307_OPENTTD, STR_NULL},
{ WWT_IMGBTN, RESIZE_NONE, 13, 0, 335, 14, 196, STR_NULL, STR_NULL},
--- a/main_gui.c Tue Jul 26 19:31:05 2005 +0000
+++ b/main_gui.c Tue Jul 26 19:34:03 2005 +0000
@@ -36,9 +36,6 @@
static const uint MinDate = 0; // 1920-01-01 (MAX_YEAR_BEGIN_REAL)
static const uint MaxDate = 29220; // 2000-01-01
-extern void DoTestSave(void);
-extern void DoTestLoad(void);
-
static int _rename_id;
static int _rename_what;
--- a/network_server.c Tue Jul 26 19:31:05 2005 +0000
+++ b/network_server.c Tue Jul 26 19:34:03 2005 +0000
@@ -27,8 +27,6 @@
void NetworkPopulateCompanyInfo(void);
void NetworkSendPatchSettings(NetworkClientState *cs);
-extern const char _openttd_revision[];
-
// Is the network enabled?
// **********
--- a/newgrf.c Tue Jul 26 19:31:05 2005 +0000
+++ b/newgrf.c Tue Jul 26 19:34:03 2005 +0000
@@ -35,7 +35,6 @@
int _grffile_count;
static int _cur_spriteid;
static int _cur_stage;
-extern uint16 _custom_sprites_base;
static int32 _paramlist[0x7f];
static int _param_max;
--- a/openttd.c Tue Jul 26 19:31:05 2005 +0000
+++ b/openttd.c Tue Jul 26 19:34:03 2005 +0000
@@ -62,9 +62,6 @@
bool LoadSavegame(const char *filename);
-extern void HalGameLoop(void);
-
-uint32 _pixels_redrawn;
bool _dbg_screen_rect;
/* TODO: usrerror() for errors which are not of an internal nature but
--- a/players.c Tue Jul 26 19:31:05 2005 +0000
+++ b/players.c Tue Jul 26 19:34:03 2005 +0000
@@ -27,8 +27,6 @@
PlayerID _current_player;
-extern void StartupEconomy(void);
-
static const SpriteID cheeks_table[4] = {
0x325, 0x326,
0x390, 0x3B0,
@@ -458,8 +456,6 @@
}
}
-extern int GetPlayerMaxRailtype(int p);
-
static Player *AllocatePlayer(void)
{
Player *p;
--- a/video/sdl_v.c Tue Jul 26 19:31:05 2005 +0000
+++ b/video/sdl_v.c Tue Jul 26 19:34:03 2005 +0000
@@ -25,8 +25,6 @@
static void SdlVideoMakeDirty(int left, int top, int width, int height)
{
-// printf("(%d,%d)-(%d,%d)\n", left, top, width, height);
-// _pixels_redrawn += width*height;
if (_num_dirty_rects < MAX_DIRTY_RECTS) {
_dirty_rects[_num_dirty_rects].x = left;
_dirty_rects[_num_dirty_rects].y = top;
--- a/window.c Tue Jul 26 19:31:05 2005 +0000
+++ b/window.c Tue Jul 26 19:34:03 2005 +0000
@@ -1492,8 +1492,6 @@
static int _we4_timer;
-extern uint32 _pixels_redrawn;
-
void UpdateWindows(void)
{
Window *w;