remove unused vars

This commit is contained in:
DarthArgus
2014-10-26 23:22:06 -07:00
parent c30a27a855
commit 982290924a
11 changed files with 0 additions and 24 deletions
@@ -2764,7 +2764,6 @@ void CentralServer::run(void)
if (curTime > nextLoadingLogTime)
{
nextLoadingLogTime = curTime + 10000;
std::string planets;
for (std::set<std::string>::const_iterator i=getInstance().m_planetsWaitingForPreload.begin(); i!=getInstance().m_planetsWaitingForPreload.end(); ++i)
LOG("Preload",("Waiting for planet %s",i->c_str()));
}
@@ -272,8 +272,6 @@ void LoginServerConnection::onReceive(const Archive::ByteStream & message)
unsigned pos = req.getCommandString().find( " " );
pos = pos == std::string::npos ? req.getCommandString().length() : pos;
std::string command = req.getCommandString().substr( 0, pos );
CentralCSHandler::getInstance().handle( req, getProcessId() );
@@ -771,7 +771,6 @@ void ChatInterface::ConnectPlayer(unsigned int suid, const std::string & charact
return;
}
std::string canonicalName = makeCanonicalName(characterName);
static const std::string game("SOE+SWG");
IGNORE_RETURN(pendingAvatars.insert(std::make_pair(characterName, networkId)));
@@ -304,7 +304,6 @@ m_voiceChatIdMap()
const std::string getGameCode = ConfigChatServer::getGameCode();
const std::string getGatewayServerIP = ConfigChatServer::getGatewayServerIP();
const std::string getBackupGatewayServerIP = ConfigChatServer::getBackupGatewayServerIP();
chatInterface = new ChatInterface(getGameCode, getGatewayServerIP, ConfigChatServer::getGatewayServerPort(), ConfigChatServer::getRegistrarHost(), static_cast<unsigned short>(ConfigChatServer::getRegistrarPort()));
@@ -1179,9 +1178,6 @@ void ChatServer::createRoom(const NetworkId & id, const unsigned int sequence, c
Unicode::String wideRoomAddress;
splitRoomName(tmpRoomName, wideRoomName, wideRoomAddress);
std::string narrowRoomName = Unicode::wideToNarrow(wideRoomName);
std::string narrowRoomAddress = Unicode::wideToNarrow(wideRoomAddress);
Unicode::String wideTitle = Unicode::narrowToWide(title);
roomParams.setRoomName(ChatUnicodeString(wideRoomName.data(), wideRoomName.size()));
@@ -141,7 +141,6 @@ void ConnectionServerConnection::onReceive(const Archive::ByteStream & message)
//printf("!Sending via the shortcut\n");
cri = c.getByteStream().begin();
static const std::string gameType("SWG");
if(cm.isType("ChatInstantMessageToCharacter"))
{
// deliver IM to character
@@ -173,8 +172,6 @@ void ConnectionServerConnection::onReceive(const Archive::ByteStream & message)
{
cri = c.getByteStream().begin();
static const std::string gameType("SWG");
if(cm.isType("ChatDeleteAllPersistentMessages"))
{
PROFILER_AUTO_BLOCK_DEFINE("ConnectionServer - ChatDeleteAllPersistentMessages");
@@ -671,8 +671,6 @@ AuctionMarket::~AuctionMarket()
AuctionLocation *AuctionMarket::CreateLocation(const NetworkId & ownerId, const std::string & locationString, int entranceCharge)
{
std::string locationId;
NetworkId loc_id = GetLocationId(locationString);
AuctionLocation *auctionLocation = new AuctionLocation(loc_id, locationString, ownerId, 0, zeroNetworkId, 0, m_gameTime, 0, ACTIVE, true, entranceCharge);
@@ -1802,7 +1800,6 @@ void AuctionMarket::AddBid(const AddBidMessage &message)
const AuctionBid *previousBid = auction->GetPreviousBid();
NetworkId previousBidder = zeroNetworkId;
int previousBidAmount = 0;
std::string previousBidderName;
int maxProxyBid = message.GetMaxProxyBid();
int salesTaxAmount = 0;
NetworkId bankId = zeroNetworkId;
@@ -539,8 +539,6 @@ void ClientConnection::onConnectionOverflowing (const unsigned int bytesPending
{
char errbuf[1024];
snprintf(errbuf, sizeof(errbuf), "Connection overflow from server to client, %d bytes. Disconnected.", bytesPending);
std::string name("Connection overflow server->client");
std::string desc(errbuf);
LOG("Network", ("Disconnect: Client connection overflowing. %d bytes pending", bytesPending));
std::vector<std::pair<std::string, int> >::const_iterator i;
@@ -70,8 +70,6 @@ void LoggingServerApiObserver::log(const LogMessage & msg)
}
msgText = splittext.substr(splittext.find(":") + 1);
std::string u = Unicode::wideToNarrow(msg.getUnicodeAttach());
// If there is ANY Unicode, send the whole log as Unicode. If there is ONLY non-Unicode, then send the log non-Unicode.
@@ -50,7 +50,6 @@ PlanetConnection & PlanetConnection::operator = (const PlanetConnection & rhs)
void PlanetConnection::receive(const Archive::ByteStream & message)
{
static const std::string localName = NetworkHandler::getHostName();
Archive::ReadIterator r(message);
GameNetworkMessage m(r);
@@ -1078,8 +1078,6 @@ void CSAssistGameAPIcore::OnConnectLB(unsigned track, unsigned result, std::stri
}
if (result == CSASSIST_RESULT_TIMEOUT)
{
//fprintf(stderr, "OnConnectLB: result=timeout\n");
std::string connectString = wideToNarrow(m_identityGame) + ":" + wideToNarrow(m_identityServer);
GetLBHost();
if (connectRequest && connectResponse)
SubmitRequest(connectRequest, connectResponse);
@@ -1091,7 +1089,6 @@ void CSAssistGameAPIcore::OnConnectLB(unsigned track, unsigned result, std::stri
if (connectRequest && connectResponse)
SubmitRequest(connectRequest, connectResponse);
}
//fprintf(stderr, "debug: OnConnectLB(): Now m_connectState=%u\n", m_connectState);
}
//-------------------------------------------------------------
@@ -488,7 +488,6 @@ namespace CSHandlerNamespace
if(!container)
return;
char stringbuffer[CSHandlerNamespace::largeBufferSize];
std::vector<Unicode::String> objList;
for (ContainerConstIterator iter(container->begin());
iter != container->end(); ++iter)
{
@@ -827,7 +826,6 @@ CS_CMD( get_player_items )
{
int item_num = 0;
std::vector<Unicode::String> objList;
for (ContainerConstIterator iter(inventoryContainer->begin());
iter != inventoryContainer->end(); ++iter)
{