- removed some dead code from SW.

This commit is contained in:
Christoph Oelckers 2020-08-03 20:53:00 +02:00
parent d526c6401f
commit 4bab061bd0
3 changed files with 0 additions and 90 deletions

View file

@ -405,15 +405,6 @@ void PreCachePachinko(void)
void PreCacheSoundList(short table[], int num)
{
short j;
#if 0
for (j = 0; j < num; j++)
{
CacheSound(table[j], CACHE_SOUND_PRECACHE);
AnimateCacheCursor();
}
#endif
}
void
@ -438,24 +429,6 @@ PreCacheRange(short start_pic, short end_pic)
}
}
void PreCacheAmbient(void)
{
int i,nexti;
int num;
SPRITEp sp;
extern AMB_INFO ambarray[];
TRAVERSE_SPRITE_STAT(headspritestat[STAT_AMBIENT], i, nexti)
{
sp = &sprite[i];
num = sp->lotag;
num = ambarray[num].diginame;
CacheSound(num, CACHE_SOUND_PRECACHE);
}
}
void PreCacheOverride(void)
{
int i,nexti;
@ -467,33 +440,6 @@ void PreCacheOverride(void)
}
}
void PreCacheSoundSpot(void)
{
int i,nexti;
int num;
SPRITEp sp;
TRAVERSE_SPRITE_STAT(headspritestat[STAT_SOUND_SPOT], i, nexti)
{
sp = &sprite[i];
num = SP_TAG13(sp); // tag4 is copied to tag13
if (num > 0 && num < DIGI_MAX)
CacheSound(num, CACHE_SOUND_PRECACHE);
num = SP_TAG5(sp);
if (num > 0 && num < DIGI_MAX)
CacheSound(num, CACHE_SOUND_PRECACHE);
num = SP_TAG6(sp);
if (num > 0 && num < DIGI_MAX)
CacheSound(num, CACHE_SOUND_PRECACHE);
CacheSound(num, CACHE_SOUND_PRECACHE);
}
}
void
PreCacheActor(void)
{
@ -626,8 +572,6 @@ void DoTheCache(void)
extern char CacheLastLevel[32],LevelName[20];
int i, cnt=0;
PreCacheAmbient();
PreCacheSoundSpot();
PreCacheActor();
PreCacheOverride();

View file

@ -26,12 +26,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
BEGIN_SW_NS
#define CACHE_NONE 0 // don't use this - this is for ken
#define CACHE_LOCK_MAX 255
#define CACHE_LOCK_START 200
#define CACHE_UNLOCK_START 1
#define CACHE_UNLOCK_MAX 199
#define CACHE_SOUND_PRECACHE 0
#define CACHE_SOUND_PLAY 1

View file

@ -39,34 +39,6 @@ BEGIN_SW_NS
extern int32_t ScreenBufferMode;
extern int32_t VesaBufferMode;
#if 0
// comm externs
extern int32_t ComPort;
extern int32_t IrqNumber;
extern int32_t UartAddress;
extern int32_t PortSpeed;
extern int32_t ToneDial;
extern char ModemName[MAXMODEMSTRING];
extern char InitString[MAXMODEMSTRING];
extern char HangupString[MAXMODEMSTRING];
extern char DialoutString[MAXMODEMSTRING];
extern int32_t SocketNumber;
extern char PhoneNames[MAXPHONEENTRIES][PHONENAMELENGTH];
extern char PhoneNumbers[MAXPHONEENTRIES][PHONENUMBERLENGTH];
extern char PhoneNumber[PHONENUMBERLENGTH];
extern int32_t NumberPlayers;
extern int32_t ConnectType;
extern char PlayerName[MAXPLAYERNAMELENGTH];
extern char UserLevel[MAXUSERLEVELNAMELENGTH];
extern char RTSPath[MAXRTSPATHLENGTH];
extern char UserPath[MAXUSERLEVELPATHLENGTH];
#endif
// controller externs
extern int32_t EnableRudder;
extern char setupfilename[BMAX_PATH];