mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-24 04:51:30 +00:00
[Commands] Remove #mysqltest Command. (#1729)
- Removed unused/deprecated command.
This commit is contained in:
parent
e12e8df3ef
commit
575237d764
@ -298,7 +298,6 @@ int command_init(void)
|
|||||||
command_add("movechar", "[charname] [zonename] - Move charname to zonename", 50, command_movechar) ||
|
command_add("movechar", "[charname] [zonename] - Move charname to zonename", 50, command_movechar) ||
|
||||||
command_add("movement", "Various movement commands", 200, command_movement) ||
|
command_add("movement", "Various movement commands", 200, command_movement) ||
|
||||||
command_add("myskills", "- Show details about your current skill levels", 0, command_myskills) ||
|
command_add("myskills", "- Show details about your current skill levels", 0, command_myskills) ||
|
||||||
command_add("mysqltest", "Akkadius MySQL Bench Test", 250, command_mysqltest) ||
|
|
||||||
command_add("mysql", "Mysql CLI, see 'help' for options.", 250, command_mysql) ||
|
command_add("mysql", "Mysql CLI, see 'help' for options.", 250, command_mysql) ||
|
||||||
command_add("mystats", "- Show details about you or your pet", 50, command_mystats) ||
|
command_add("mystats", "- Show details about you or your pet", 50, command_mystats) ||
|
||||||
command_add("name", "[newname] - Rename your player target", 150, command_name) ||
|
command_add("name", "[newname] - Rename your player target", 150, command_name) ||
|
||||||
@ -14720,20 +14719,6 @@ void command_logs(Client *c, const Seperator *sep){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void command_mysqltest(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++){
|
|
||||||
std::string query = "SELECT * FROM `zone`";
|
|
||||||
auto results = content_db.QueryDatabase(query);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
LogDebug("MySQL Test Took [{}] seconds", ((float)(std::clock() - t)) / CLOCKS_PER_SEC);
|
|
||||||
}
|
|
||||||
|
|
||||||
void command_resetaa_timer(Client *c, const Seperator *sep) {
|
void command_resetaa_timer(Client *c, const Seperator *sep) {
|
||||||
Client *target = nullptr;
|
Client *target = nullptr;
|
||||||
if(!c->GetTarget() || !c->GetTarget()->IsClient()) {
|
if(!c->GetTarget() || !c->GetTarget()->IsClient()) {
|
||||||
|
|||||||
@ -189,7 +189,6 @@ void command_movechar(Client *c, const Seperator *sep);
|
|||||||
void command_movement(Client *c, const Seperator *sep);
|
void command_movement(Client *c, const Seperator *sep);
|
||||||
void command_myskills(Client *c, const Seperator *sep);
|
void command_myskills(Client *c, const Seperator *sep);
|
||||||
void command_mysql(Client *c, const Seperator *sep);
|
void command_mysql(Client *c, const Seperator *sep);
|
||||||
void command_mysqltest(Client *c, const Seperator *sep);
|
|
||||||
void command_mystats(Client *c, const Seperator *sep);
|
void command_mystats(Client *c, const Seperator *sep);
|
||||||
void command_name(Client *c, const Seperator *sep);
|
void command_name(Client *c, const Seperator *sep);
|
||||||
void command_netstats(Client *c, const Seperator *sep);
|
void command_netstats(Client *c, const Seperator *sep);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user