drop some useless return statements

This commit is contained in:
/dev/humancontroller authored and Zack Middleton committed 2013-05-30 15:43:21 -05:00
1 parent bbd17d75ce
commit 9d626b6a12
15 files changed
-20

No files matched your search

-3
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);
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
//===========================================================================
//
-1
View File
@@ -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
//===========================================================================
//
-1
View File
@@ -691,7 +691,6 @@ void BotGoalName(int number, char *name, int size)
} //end for
} //end for
strcpy(name, "");
return;
} //end of the function BotGoalName
//===========================================================================
//