Remove dead code. Patch #890 by Thomas Frauendorfer <caotic>.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3112 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2007-12-21 18:23:18 +00:00
parent 53aa930d6e
commit 921520d04b
1 changed files with 0 additions and 59 deletions

View File

@ -127,7 +127,6 @@ void groupConsoleInformOfSelection( UDWORD groupNumber );
void groupConsoleInformOfCreation( UDWORD groupNumber ); void groupConsoleInformOfCreation( UDWORD groupNumber );
void groupConsoleInformOfCentering( UDWORD groupNumber ); void groupConsoleInformOfCentering( UDWORD groupNumber );
void droidUpdateRecoil( DROID *psDroid ); void droidUpdateRecoil( DROID *psDroid );
UDWORD getBound(UDWORD level);
// initialise droid module // initialise droid module
@ -4173,26 +4172,12 @@ const char *getDroidLevelName(DROID *psDroid)
UDWORD getNumDroidsForLevel(UDWORD level) UDWORD getNumDroidsForLevel(UDWORD level)
{ {
//UDWORD lower,upper;
DROID *psDroid; DROID *psDroid;
UDWORD count; UDWORD count;
//UDWORD numKills;
/* if(level)
{
lower = getBound(level-1);
upper = getBound(level);
}
else
{
lower = upper = 0;
}*/
for(psDroid = apsDroidLists[selectedPlayer],count = 0; for(psDroid = apsDroidLists[selectedPlayer],count = 0;
psDroid; psDroid = psDroid->psNext) psDroid; psDroid = psDroid->psNext)
{ {
/* numKills = psDroid->numKills;
if(level ? (numKills > lower && numKills <=upper) : (numKills ==0) )*/
if (getDroidLevel(psDroid) == level) if (getDroidLevel(psDroid) == level)
{ {
count++; count++;
@ -4204,50 +4189,6 @@ UDWORD count;
UDWORD getBound(UDWORD level)
{
if(level ==0)
{
return(0);
}
else if(level<8)
{
return(1<<(level+2));
}
else return(UDWORD_MAX);
switch(level)
{
case 0:
return(0);
break;
case 1:
return(4);
break;
case 2:
return(8);
break;
case 3:
return(16);
break;
case 4:
return(32);
break;
case 5:
return(64);
break;
case 6:
return(128);
break;
case 7:
return(512);
break;
default:
return(UDWORD_MAX);
break;
}
}
// Get the name of a droid from it's DROID structure. // Get the name of a droid from it's DROID structure.
// //
char *droidGetName(DROID *psDroid) char *droidGetName(DROID *psDroid)