drop some useless return statements

This commit is contained in:
/dev/humancontroller 2013-04-14 18:33:26 +02:00 committed by Zack Middleton
parent bbd17d75ce
commit 9d626b6a12
15 changed files with 0 additions and 20 deletions

View File

@ -760,14 +760,11 @@ void Characteristic_String(int character, int index, char *buf, int size)
{ {
strncpy(buf, ch->c[index].value.string, size-1); strncpy(buf, ch->c[index].value.string, size-1);
buf[size-1] = '\0'; buf[size-1] = '\0';
return;
} //end if } //end if
else else
{ {
botimport.Print(PRT_ERROR, "characteristic %d is not a string\n", index); botimport.Print(PRT_ERROR, "characteristic %d is not a string\n", index);
return;
} //end else if } //end else if
return;
} //end of the function Characteristic_String } //end of the function Characteristic_String
//=========================================================================== //===========================================================================
// //

View File

@ -1506,7 +1506,6 @@ void BotMatchVariable(bot_match_t *match, int variable, char *buf, int size)
{ {
strcpy(buf, ""); strcpy(buf, "");
} //end else } //end else
return;
} //end of the function BotMatchVariable } //end of the function BotMatchVariable
//=========================================================================== //===========================================================================
// //

View File

@ -691,7 +691,6 @@ void BotGoalName(int number, char *name, int size)
} //end for } //end for
} //end for } //end for
strcpy(name, ""); strcpy(name, "");
return;
} //end of the function BotGoalName } //end of the function BotGoalName
//=========================================================================== //===========================================================================
// //

View File

@ -1320,7 +1320,6 @@ void CG_ParticleExplosion (char *animStr, vec3_t origin, vec3_t vel, int duratio
// Rafael Shrapnel // Rafael Shrapnel
void CG_AddParticleShrapnel (localEntity_t *le) void CG_AddParticleShrapnel (localEntity_t *le)
{ {
return;
} }
// done. // done.

View File

@ -1286,7 +1286,6 @@ void CL_KeyDownEvent( int key, unsigned time )
// send the bound action // send the bound action
CL_ParseBinding( key, qtrue, time ); CL_ParseBinding( key, qtrue, time );
return;
} }
/* /*

View File

@ -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) ); Com_Error( ERR_FATAL, "Small zone data failed to allocate %1.1f megs", (float)s_smallZoneTotal / (1024*1024) );
} }
Z_ClearZone( smallzone, s_smallZoneTotal ); Z_ClearZone( smallzone, s_smallZoneTotal );
return;
} }
void Com_InitZoneMemory( void ) { void Com_InitZoneMemory( void ) {

View File

@ -2810,7 +2810,6 @@ void FS_Which_f( void ) {
} }
Com_Printf("File not found: \"%s\"\n", filename); Com_Printf("File not found: \"%s\"\n", filename);
return;
} }

View File

@ -1961,8 +1961,6 @@ PPC_ComputeCode( vm_t *vm )
di_now = di_first; di_now = di_first;
} }
} }
return;
} }
static void static void

View File

@ -1202,7 +1202,6 @@ static void RB_SurfaceEntity( surfaceType_t *surfType ) {
RB_SurfaceAxis(); RB_SurfaceAxis();
break; break;
} }
return;
} }
static void RB_SurfaceBad( surfaceType_t *surfType ) { static void RB_SurfaceBad( surfaceType_t *surfType ) {

View File

@ -1561,7 +1561,6 @@ static void RB_SurfaceEntity( surfaceType_t *surfType ) {
RB_SurfaceAxis(); RB_SurfaceAxis();
break; break;
} }
return;
} }
static void RB_SurfaceBad( surfaceType_t *surfType ) { static void RB_SurfaceBad( surfaceType_t *surfType ) {

View File

@ -250,7 +250,6 @@ static void hashtable_init (hashtable_t *H, int buckets)
{ {
H->buckets = buckets; H->buckets = buckets;
H->table = calloc(H->buckets, sizeof(*(H->table))); H->table = calloc(H->buckets, sizeof(*(H->table)));
return;
} }
static hashtable_t *hashtable_new (int buckets) 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->data = datum;
hc->next = 0; hc->next = 0;
return;
} }
static hashchain_t *hashtable_get (hashtable_t *H, int hashvalue) static hashchain_t *hashtable_get (hashtable_t *H, int hashvalue)

View File

@ -250,7 +250,6 @@ control(Tokenrow *trp)
break; break;
} }
setempty(trp); setempty(trp);
return;
} }
void * void *

View File

@ -108,7 +108,6 @@ doinclude(Tokenrow *trp)
return; return;
syntax: syntax:
error(ERROR, "Syntax error in #include"); error(ERROR, "Syntax error in #include");
return;
} }
/* /*

View File

@ -218,7 +218,6 @@ expand(Tokenrow *trp, Nlist *np)
insertrow(trp, ntokc, &ntr); insertrow(trp, ntokc, &ntr);
trp->tp -= rowlen(&ntr); trp->tp -= rowlen(&ntr);
dofree(ntr.bp); dofree(ntr.bp);
return;
} }
/* /*

View File

@ -298,7 +298,6 @@ unsigned start; /* inflate()'s starting value for strm->avail_out */
257 + (end - out) : 257 - (out - end)); 257 + (end - out) : 257 - (out - end));
state->hold = hold; state->hold = hold;
state->bits = bits; state->bits = bits;
return;
} }
/* /*