[Commands] Remove #logtest Command. (#1731)

- Remove unused/deprecated command.
This commit is contained in:
Kinglykrab 2021-11-12 15:46:05 -05:00 committed by GitHub
parent 908c6c18af
commit e870ee5e0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 14 deletions

View File

@ -285,7 +285,6 @@ int command_init(void)
command_add("loc", "- Print out your or your target's current location and heading", 0, command_loc) || command_add("loc", "- Print out your or your target's current location and heading", 0, command_loc) ||
command_add("lock", "- Lock the worldserver", 150, command_lock) || command_add("lock", "- Lock the worldserver", 150, command_lock) ||
command_add("logs", "Manage anything to do with logs", 250, command_logs) || command_add("logs", "Manage anything to do with logs", 250, command_logs) ||
command_add("logtest", "Performs log performance testing.", 250, command_logtest) ||
command_add("makepet", "[level] [class] [race] [texture] - Make a pet", 50, command_makepet) || command_add("makepet", "[level] [class] [race] [texture] - Make a pet", 50, command_makepet) ||
command_add("mana", "- Fill your or your target's mana", 50, command_mana) || command_add("mana", "- Fill your or your target's mana", 50, command_mana) ||
command_add("maxskills", "Maxes skills for you.", 200, command_max_all_skills) || command_add("maxskills", "Maxes skills for you.", 200, command_max_all_skills) ||
@ -14688,18 +14687,6 @@ void command_tune(Client *c, const Seperator *sep)
return; return;
} }
void command_logtest(Client *c, const Seperator *sep){
clock_t t = std::clock(); /* Function timer start */
if (sep->IsNumber(1)){
uint32 i = 0;
t = std::clock();
for (i = 0; i < atoi(sep->arg[1]); i++){
LogDebug("[[{}]] Test #2 Took [{}] seconds", i, ((float)(std::clock() - t)) / CLOCKS_PER_SEC);
}
}
}
void command_logs(Client *c, const Seperator *sep){ void command_logs(Client *c, const Seperator *sep){
int logs_set = 0; int logs_set = 0;
if (sep->argnum > 0) { if (sep->argnum > 0) {

View File

@ -165,7 +165,6 @@ void command_load_shared_memory(Client *c, const Seperator *sep);
void command_loc(Client *c, const Seperator *sep); void command_loc(Client *c, const Seperator *sep);
void command_lock(Client *c, const Seperator *sep); void command_lock(Client *c, const Seperator *sep);
void command_logs(Client *c, const Seperator *sep); void command_logs(Client *c, const Seperator *sep);
void command_logtest(Client *c, const Seperator *sep);
void command_makepet(Client *c, const Seperator *sep); void command_makepet(Client *c, const Seperator *sep);
void command_mana(Client *c, const Seperator *sep); void command_mana(Client *c, const Seperator *sep);
void command_max_all_skills(Client *c, const Seperator *sep); void command_max_all_skills(Client *c, const Seperator *sep);