From fb03e8c67d5166dc30d157affa5c8674991fb54d Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 20 Jan 2015 01:37:58 -0600 Subject: [PATCH] Remove Duplicative MySQL Error: Error querying database for monster summoning pet in zone %s (%s) --- zone/doors.cpp | 1 - zone/forage.cpp | 1 - zone/mob_ai.cpp | 1 - zone/object.cpp | 1 - zone/pets.cpp | 1 - 5 files changed, 5 deletions(-) diff --git a/zone/doors.cpp b/zone/doors.cpp index 76ecb53fc..66ac4bf16 100644 --- a/zone/doors.cpp +++ b/zone/doors.cpp @@ -578,7 +578,6 @@ int32 ZoneDatabase::GetDoorsCount(uint32* oMaxID, const char *zone_name, int16 v zone_name, version); auto results = QueryDatabase(query); if (!results.Success()) { - std::cerr << "Error in GetDoorsCount query '" << query << "' " << results.ErrorMessage() << std::endl; return -1; } diff --git a/zone/forage.cpp b/zone/forage.cpp index 3fe61f9d1..5b407c0f5 100644 --- a/zone/forage.cpp +++ b/zone/forage.cpp @@ -114,7 +114,6 @@ uint32 ZoneDatabase::GetZoneFishing(uint32 ZoneID, uint8 skill, uint32 &npc_id, ZoneID, skill); auto results = QueryDatabase(query); if (!results.Success()) { - std::cerr << "Error in Fishing query '" << query << "' " << results.ErrorMessage() << std::endl; return 0; } diff --git a/zone/mob_ai.cpp b/zone/mob_ai.cpp index 67b8d4480..e46f10ff6 100644 --- a/zone/mob_ai.cpp +++ b/zone/mob_ai.cpp @@ -2680,7 +2680,6 @@ DBnpcspells_Struct* ZoneDatabase::GetNPCSpells(uint32 iDBSpellsID) { "idle_b_chance FROM npc_spells WHERE id=%d", iDBSpellsID); auto results = QueryDatabase(query); if (!results.Success()) { - std::cerr << "Error in AddNPCSpells query1 '" << query << "' " << results.ErrorMessage() << std::endl; return nullptr; } diff --git a/zone/object.cpp b/zone/object.cpp index 07ff5858b..f1fd818aa 100644 --- a/zone/object.cpp +++ b/zone/object.cpp @@ -653,7 +653,6 @@ Ground_Spawns* ZoneDatabase::LoadGroundSpawns(uint32 zone_id, int16 version, Gro "LIMIT 50", zone_id, version); auto results = QueryDatabase(query); if (!results.Success()) { - std::cerr << "Error in LoadGroundSpawns query '" << query << "' " << results.ErrorMessage() << std::endl; return gs; } diff --git a/zone/pets.cpp b/zone/pets.cpp index 22fa379ce..04878bfd6 100644 --- a/zone/pets.cpp +++ b/zone/pets.cpp @@ -372,7 +372,6 @@ void Mob::MakePoweredPet(uint16 spell_id, const char* pettype, int16 petpower, auto results = database.QueryDatabase(query); if (!results.Success()) { // if the database query failed - Log.Out(Logs::General, Logs::Error, "Error querying database for monster summoning pet in zone %s (%s)", zone->GetShortName(), results.ErrorMessage().c_str()); } if (results.RowCount() != 0) {