Skip to content

Commit

Permalink
[11707] Drop unused in 3.x AuctionHouseMgr::SendAuctionSalePendingMail
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirMangos committed Jul 2, 2011
1 parent 3009b51 commit 6305cad
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 31 deletions.
29 changes: 0 additions & 29 deletions src/game/AuctionHouseMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,35 +176,6 @@ void AuctionHouseMgr::SendAuctionWonMail(AuctionEntry *auction)
}
}

void AuctionHouseMgr::SendAuctionSalePendingMail(AuctionEntry * auction)
{
ObjectGuid owner_guid = ObjectGuid(HIGHGUID_PLAYER, auction->owner);
Player *owner = sObjectMgr.GetPlayer(owner_guid);

// owner exist (online or offline)
if (owner || owner_guid && sObjectMgr.GetPlayerAccountIdByGUID(owner_guid))
{
std::ostringstream msgAuctionSalePendingSubject;
msgAuctionSalePendingSubject << auction->itemTemplate << ":" << auction->itemRandomPropertyId << ":" << AUCTION_SALE_PENDING;

std::ostringstream msgAuctionSalePendingBody;
uint32 auctionCut = auction->GetAuctionCut();

time_t distrTime = time(NULL) + HOUR;

msgAuctionSalePendingBody.width(16);
msgAuctionSalePendingBody << std::right << std::hex << auction->bidder;
msgAuctionSalePendingBody << std::dec << ":" << auction->bid << ":" << auction->buyout;
msgAuctionSalePendingBody << ":" << auction->deposit << ":" << auctionCut << ":0:";
msgAuctionSalePendingBody << secsToTimeBitFields(distrTime);

DEBUG_LOG("AuctionSalePending body string : %s", msgAuctionSalePendingBody.str().c_str());

MailDraft(msgAuctionSalePendingSubject.str(), msgAuctionSalePendingBody.str())
.SendMailTo(MailReceiver(owner, owner_guid), auction, MAIL_CHECK_MASK_COPIED);
}
}

// call this method to send mail to auction owner, when auction is successful, it does not clear ram
void AuctionHouseMgr::SendAuctionSuccessfulMail(AuctionEntry * auction)
{
Expand Down
1 change: 0 additions & 1 deletion src/game/AuctionHouseMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ class AuctionHouseMgr

//auction messages
void SendAuctionWonMail( AuctionEntry * auction );
void SendAuctionSalePendingMail( AuctionEntry * auction );
void SendAuctionSuccessfulMail( AuctionEntry * auction );
void SendAuctionExpiredMail( AuctionEntry * auction );
static uint32 GetAuctionDeposit(AuctionHouseEntry const* entry, uint32 time, Item *pItem);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11706"
#define REVISION_NR "11707"
#endif // __REVISION_NR_H__

0 comments on commit 6305cad

Please sign in to comment.