mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +00:00
drop some useless return statements
This commit is contained in:
parent
bbd17d75ce
commit
9d626b6a12
15 changed files with 0 additions and 20 deletions
|
@ -760,14 +760,11 @@ void Characteristic_String(int character, int index, char *buf, int size)
|
|||
{
|
||||
strncpy(buf, ch->c[index].value.string, size-1);
|
||||
buf[size-1] = '\0';
|
||||
return;
|
||||
} //end if
|
||||
else
|
||||
{
|
||||
botimport.Print(PRT_ERROR, "characteristic %d is not a string\n", index);
|
||||
return;
|
||||
} //end else if
|
||||
return;
|
||||
} //end of the function Characteristic_String
|
||||
//===========================================================================
|
||||
//
|
||||
|
|
|
@ -1506,7 +1506,6 @@ void BotMatchVariable(bot_match_t *match, int variable, char *buf, int size)
|
|||
{
|
||||
strcpy(buf, "");
|
||||
} //end else
|
||||
return;
|
||||
} //end of the function BotMatchVariable
|
||||
//===========================================================================
|
||||
//
|
||||
|
|
|
@ -691,7 +691,6 @@ void BotGoalName(int number, char *name, int size)
|
|||
} //end for
|
||||
} //end for
|
||||
strcpy(name, "");
|
||||
return;
|
||||
} //end of the function BotGoalName
|
||||
//===========================================================================
|
||||
//
|
||||
|
|
|
@ -1320,7 +1320,6 @@ void CG_ParticleExplosion (char *animStr, vec3_t origin, vec3_t vel, int duratio
|
|||
// Rafael Shrapnel
|
||||
void CG_AddParticleShrapnel (localEntity_t *le)
|
||||
{
|
||||
return;
|
||||
}
|
||||
// done.
|
||||
|
||||
|
|
|
@ -1286,7 +1286,6 @@ void CL_KeyDownEvent( int key, unsigned time )
|
|||
|
||||
// send the bound action
|
||||
CL_ParseBinding( key, qtrue, time );
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1411,8 +1411,6 @@ void Com_InitSmallZoneMemory( void ) {
|
|||
Com_Error( ERR_FATAL, "Small zone data failed to allocate %1.1f megs", (float)s_smallZoneTotal / (1024*1024) );
|
||||
}
|
||||
Z_ClearZone( smallzone, s_smallZoneTotal );
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
void Com_InitZoneMemory( void ) {
|
||||
|
|
|
@ -2810,7 +2810,6 @@ void FS_Which_f( void ) {
|
|||
}
|
||||
|
||||
Com_Printf("File not found: \"%s\"\n", filename);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1961,8 +1961,6 @@ PPC_ComputeCode( vm_t *vm )
|
|||
di_now = di_first;
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -1202,7 +1202,6 @@ static void RB_SurfaceEntity( surfaceType_t *surfType ) {
|
|||
RB_SurfaceAxis();
|
||||
break;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
static void RB_SurfaceBad( surfaceType_t *surfType ) {
|
||||
|
|
|
@ -1561,7 +1561,6 @@ static void RB_SurfaceEntity( surfaceType_t *surfType ) {
|
|||
RB_SurfaceAxis();
|
||||
break;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
static void RB_SurfaceBad( surfaceType_t *surfType ) {
|
||||
|
|
|
@ -250,7 +250,6 @@ static void hashtable_init (hashtable_t *H, int buckets)
|
|||
{
|
||||
H->buckets = buckets;
|
||||
H->table = calloc(H->buckets, sizeof(*(H->table)));
|
||||
return;
|
||||
}
|
||||
|
||||
static hashtable_t *hashtable_new (int buckets)
|
||||
|
@ -285,7 +284,6 @@ static void hashtable_add (hashtable_t *H, int hashvalue, void *datum)
|
|||
}
|
||||
hc->data = datum;
|
||||
hc->next = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
static hashchain_t *hashtable_get (hashtable_t *H, int hashvalue)
|
||||
|
|
|
@ -250,7 +250,6 @@ control(Tokenrow *trp)
|
|||
break;
|
||||
}
|
||||
setempty(trp);
|
||||
return;
|
||||
}
|
||||
|
||||
void *
|
||||
|
|
|
@ -108,7 +108,6 @@ doinclude(Tokenrow *trp)
|
|||
return;
|
||||
syntax:
|
||||
error(ERROR, "Syntax error in #include");
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -218,7 +218,6 @@ expand(Tokenrow *trp, Nlist *np)
|
|||
insertrow(trp, ntokc, &ntr);
|
||||
trp->tp -= rowlen(&ntr);
|
||||
dofree(ntr.bp);
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -298,7 +298,6 @@ unsigned start; /* inflate()'s starting value for strm->avail_out */
|
|||
257 + (end - out) : 257 - (out - end));
|
||||
state->hold = hold;
|
||||
state->bits = bits;
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue