From ef312b7b48cd4383a369a6721943fb72b257b4bb Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 20 Jan 2015 01:38:43 -0600 Subject: [PATCH] Remove Duplicative MySQL Error: --- common/database.cpp | 1 - common/shareddb.cpp | 1 - world/eql_config.cpp | 1 - zone/zone.cpp | 1 - zone/zonedb.cpp | 1 - 5 files changed, 5 deletions(-) diff --git a/common/database.cpp b/common/database.cpp index 52850658e..d933e3ee4 100644 --- a/common/database.cpp +++ b/common/database.cpp @@ -162,7 +162,6 @@ bool Database::CheckBannedIPs(const char* loginIP) if (!results.Success()) { - std::cerr << "Error in CheckBannedIPs query '" << query << "' " << results.ErrorMessage() << std::endl; return true; } diff --git a/common/shareddb.cpp b/common/shareddb.cpp index 14e43c6de..53e6d2306 100644 --- a/common/shareddb.cpp +++ b/common/shareddb.cpp @@ -57,7 +57,6 @@ uint8 SharedDatabase::GetGMSpeed(uint32 account_id) std::string query = StringFormat("SELECT gmspeed FROM account WHERE id = '%i'", account_id); auto results = QueryDatabase(query); if (!results.Success()) { - std::cerr << "Error in GetGMSpeed query '" << query << "' " << results.ErrorMessage() << std::endl; return 0; } diff --git a/world/eql_config.cpp b/world/eql_config.cpp index b8ce0dddb..0d9858908 100644 --- a/world/eql_config.cpp +++ b/world/eql_config.cpp @@ -117,7 +117,6 @@ void EQLConfig::DeleteLauncher() { std::string query = StringFormat("DELETE FROM launcher WHERE name = '%s'", namebuf); auto results = database.QueryDatabase(query); if (!results.Success()) { - Log.Out(Logs::General, Logs::Error, "Error in DeleteLauncher 1st query: %s", results.ErrorMessage().c_str()); return; } diff --git a/zone/zone.cpp b/zone/zone.cpp index 8d42c2ad6..2f7e00522 100644 --- a/zone/zone.cpp +++ b/zone/zone.cpp @@ -1643,7 +1643,6 @@ bool ZoneDatabase::LoadStaticZonePoints(LinkedList* zone_point_list, "ORDER BY number", zonename, version); auto results = QueryDatabase(query); if (!results.Success()) { - std::cerr << "Error1 in LoadStaticZonePoints query '" << query << "' " << results.ErrorMessage() << std::endl; return false; } diff --git a/zone/zonedb.cpp b/zone/zonedb.cpp index e2e6689b0..845e5333c 100644 --- a/zone/zonedb.cpp +++ b/zone/zonedb.cpp @@ -271,7 +271,6 @@ bool ZoneDatabase::logevents(const char* accountname,uint32 accountid,uint8 stat safe_delete_array(targetarr); auto results = QueryDatabase(query); if (!results.Success()) { - std::cerr << "Error in logevents" << query << "' " << results.ErrorMessage() << std::endl; return false; }