Removing ProgressBars as they are performing badly on startup.

[**************************************************] 100%
R.I.P

--HG--
branch : trunk
This commit is contained in:
leak
2010-12-22 00:12:03 +01:00
parent a45a039e73
commit 6115b0bd5f
35 changed files with 94 additions and 824 deletions
@@ -31,7 +31,6 @@
#include "Item.h"
#include "Language.h"
#include "Logging/Log.h"
#include "ProgressBar.h"
#include <vector>
enum eAuctionHouse
@@ -316,19 +315,15 @@ void AuctionHouseMgr::LoadAuctionItems()
if (!result)
{
barGoLink bar(1);
bar.step();
sLog.outString(">> Loaded 0 auction items. DB table `auctionhouse` or `item_instance` is empty!");
sLog.outString();
return;
}
barGoLink bar(result->GetRowCount());
uint32 count = 0;
do
{
bar.step();
Field* fields = result->Fetch();
@@ -367,14 +362,11 @@ void AuctionHouseMgr::LoadAuctions()
if (!result)
{
barGoLink bar(1);
bar.step();
sLog.outString(">> Loaded 0 auctions. DB table `auctionhouse` is empty.");
sLog.outString();
return;
}
barGoLink bar(result->GetRowCount());
uint32 count = 0;
SQLTransaction trans = CharacterDatabase.BeginTransaction();
@@ -382,7 +374,6 @@ void AuctionHouseMgr::LoadAuctions()
{
Field* fields = result->Fetch();
bar.step();
AuctionEntry *aItem = new AuctionEntry();
if (!aItem->LoadFromDB(fields))