Changeset - r2204:4670311b130c
[Not reviewed]
master
0 11 0
tron - 19 years ago 2005-07-26 19:34:03
tron@openttd.org
(svn r2720) Remove unused declarations and definitions
11 files changed with 0 insertions and 27 deletions:
0 comments (0 inline, 0 general)
command.c
Show inline comments
 
@@ -318,14 +318,12 @@ byte GetCommandFlags(uint cmd) {return _
 
int32 DoCommandByTile(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc)
 
{
 
	return DoCommand(TileX(tile) * 16, TileY(tile) * 16, p1, p2, flags, procc);
 
}
 

	
 

	
 
//extern void _stdcall Sleep(int s);
 

	
 
int32 DoCommand(int x, int y, uint32 p1, uint32 p2, uint32 flags, uint procc)
 
{
 
	int32 res;
 
	CommandProc *proc;
 

	
 
	/* Do not even think about executing out-of-bounds tile-commands */
engine.c
Show inline comments
 
@@ -644,14 +644,12 @@ uint16 GetCallBackResult(uint16 callback
 

	
 
// Global variables are evil, yes, but we would end up with horribly overblown
 
// calling convention otherwise and this should be 100% reentrant.
 
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)
 
{
 
	if (spritegroup->type == SGT_RANDOMIZED) {
 
		_vsg_bits_to_reseed |= RandomizedSpriteGroupTriggeredBits(
 
			&spritegroup->g.random,
gfx.c
Show inline comments
 
@@ -1726,14 +1726,12 @@ static void DbgScreenRect(int left, int 
 
	dp = _screen;
 
	GfxFillRect(left, top, right - 1, bottom - 1, rand() & 255);
 
	_cur_dpi = old;
 
}
 
#endif
 

	
 
extern bool _dbg_screen_rect;
 

	
 
void RedrawScreenRect(int left, int top, int right, int bottom)
 
{
 
	assert(right <= _screen.width && bottom <= _screen.height);
 
	if (_cursor.visible) {
 
		if (right > _cursor.draw_pos.x &&
 
				left < _cursor.draw_pos.x + _cursor.draw_size.x &&
intro_gui.c
Show inline comments
 
@@ -13,16 +13,12 @@
 
#include "console.h"
 
#include "network.h"
 
#include "variables.h"
 

	
 
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},
 
{ WWT_PUSHTXTBTN, RESIZE_NONE, 12,  10, 167,  22,  33, STR_0140_NEW_GAME,      STR_02FB_START_A_NEW_GAME},
 
{ WWT_PUSHTXTBTN, RESIZE_NONE, 12, 168, 325,  22,  33, STR_0141_LOAD_GAME,     STR_02FC_LOAD_A_SAVED_GAME},
 
{ WWT_PUSHTXTBTN, RESIZE_NONE, 12,  10, 167,  40,  51, STR_0220_CREATE_SCENARIO,STR_02FE_CREATE_A_CUSTOMIZED_GAME},
main_gui.c
Show inline comments
 
@@ -33,15 +33,12 @@
 

	
 

	
 
/* Min/Max date for scenario editor */
 
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;
 

	
 
static byte _terraform_size = 1;
 
static byte _last_built_railtype;
 
extern void GenerateWorld(int mode, uint size_x, uint size_y);
network_server.c
Show inline comments
 
@@ -24,14 +24,12 @@
 
// This file handles all the server-commands
 

	
 
void NetworkHandleCommandQueue(NetworkClientState *cs);
 
void NetworkPopulateCompanyInfo(void);
 
void NetworkSendPatchSettings(NetworkClientState *cs);
 

	
 
extern const char _openttd_revision[];
 

	
 
// Is the network enabled?
 

	
 
// **********
 
// Sending functions
 
//   DEF_SERVER_SEND_COMMAND has parameter: NetworkClientState *cs
 
// **********
newgrf.c
Show inline comments
 
@@ -32,13 +32,12 @@ extern int _traininfo_vehicle_pitch;
 

	
 
GRFFile *_cur_grffile;
 
GRFFile *_first_grffile;
 
int _grffile_count;
 
static int _cur_spriteid;
 
static int _cur_stage;
 
extern uint16 _custom_sprites_base;
 

	
 
static int32 _paramlist[0x7f];
 
static int _param_max;
 

	
 
/* 32 * 8 = 256 flags. Apparently TTDPatch uses this many.. */
 
static uint32 _ttdpatch_flags[8];
openttd.c
Show inline comments
 
@@ -59,15 +59,12 @@ void DeleteAllPlayerStations(void);
 
extern void SetDifficultyLevel(int mode, GameOptions *gm_opt);
 
extern void DoStartupNewPlayer(bool is_ai);
 
extern void ShowOSErrorBox(const char *buf);
 

	
 
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
 
 * caused by the user, i.e. missing files or fatal configuration errors.
 
 * Post-0.4.0 since Celestar doesn't want this in SVN before. --pasky */
 

	
players.c
Show inline comments
 
@@ -24,14 +24,12 @@
 
#include "sound.h"
 
#include "network.h"
 
#include "variables.h"
 

	
 
PlayerID _current_player;
 

	
 
extern void StartupEconomy(void);
 

	
 
static const SpriteID cheeks_table[4] = {
 
	0x325, 0x326,
 
	0x390, 0x3B0,
 
};
 

	
 
static const SpriteID mouth_table[3] = {
 
@@ -455,14 +453,12 @@ restart:;
 
			}
 
		}
 
		return;
 
	}
 
}
 

	
 
extern int GetPlayerMaxRailtype(int p);
 

	
 
static Player *AllocatePlayer(void)
 
{
 
	Player *p;
 
	// Find a free slot
 
	FOR_ALL_PLAYERS(p) {
 
		if (!p->is_active) {
video/sdl_v.c
Show inline comments
 
@@ -22,14 +22,12 @@ static bool _all_modes;
 
#define MAX_DIRTY_RECTS 100
 
static SDL_Rect _dirty_rects[MAX_DIRTY_RECTS];
 
static int _num_dirty_rects;
 

	
 
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;
 
		_dirty_rects[_num_dirty_rects].w = width;
 
		_dirty_rects[_num_dirty_rects].h = height;
 
	}
window.c
Show inline comments
 
@@ -1489,14 +1489,12 @@ void InputLoop(void)
 
	MouseLoop(click, mousewheel);
 
}
 

	
 

	
 
static int _we4_timer;
 

	
 
extern uint32 _pixels_redrawn;
 

	
 
void UpdateWindows(void)
 
{
 
	Window *w;
 
	int t;
 

	
 

	
0 comments (0 inline, 0 general)