potentially breaking: unused vars

This commit is contained in:
DarthArgus
2014-10-26 23:28:34 -07:00
parent 982290924a
commit 4d2287d072
27 changed files with 2 additions and 35 deletions
@@ -40,7 +40,6 @@ void DB::TaskRequest::workerThreadLoop(DB::Session *ses)
{
// save off the failed query statement from the process() that failed
// because it will be overwritten by the test query statement
std::string failedQuery = ses->getLastQueryStatement();
ses->rollbackTransaction();
Os::sleep(DB::Server::getErrorSleepTime());
@@ -288,7 +288,6 @@ void RemoteDebugClient::receive(const unsigned char * const message, const uint3
//can't have local variables defined within switch statements, so place them out here.
int32 t;
VARIABLE_TYPES varType;
std::string variableName;
switch(type)
{
@@ -875,7 +875,6 @@ bool TreeFile::stripTreeFileSearchPathFromFile(const char *inputPath, char *outp
{
// make sure the output buffer has enough room
int const pathLength = static_cast<int>(strlen(path));
int const outputLength = static_cast<int>(strlen(buffer)) - pathLength;
if (outputLength > outputPathBufferSize)
return false;
@@ -105,7 +105,6 @@ void HyperspaceManager::install()
return;
}
DataTable const * const hyperspaceLocationsTable = DataTableManager::getTable(cms_hyperspaceLocationsTableName, true);
std::string hyperspacePointName;
if(hyperspaceLocationsTable)
{
HyperspaceLocation hyperspaceLoc;
@@ -119,7 +119,6 @@ OutOfBandPackager::OutOfBandBaseVector OutOfBandPackager::unpack(const Unicode::
Archive::ByteStream bs(buf, buflen);
Archive::ReadIterator ri(bs);
std::string templateName;
unsigned char typeId = 0;
int position = 0;
int numUnpacked = 0;
@@ -86,8 +86,6 @@ bool MatchMakingId::isBitSet(Bit const bit) const
//-----------------------------------------------------------------------------
std::string MatchMakingId::getDebugIntString() const
{
IntVector ints(getInts());
std::string result;
for (int bit = 0; bit < getBitCount(); ++bit)
@@ -84,7 +84,6 @@ MessageQueue::Data* BuffBuilderChangeMessage::unpack(Archive::ReadIterator & sou
NetworkId tempId;
bool tempBool = false;
std::string tempStr;
int tempInt = 0;
time_t tempTime = 0;
@@ -75,7 +75,6 @@ MessageQueue::Data* MessageQueueCreateSaga::unpack(Archive::ReadIterator & sourc
int numTasks;
int taskType, numParameters;
std::string parameter;
Archive::get(source, numTasks);
msg->setTotalTasks(numTasks);
for (int i = 0; i < numTasks; ++i)
@@ -1692,8 +1692,6 @@ std::string upperName;
*/
void TemplateData::writeCompilerHeaderMethods(File &fp) const
{
std::string upperName;
DEBUG_FATAL(!m_writeForCompilerFlag, ("write for compiler not enabled"));
fp.print("public:\n");
@@ -329,7 +329,6 @@ int TpfFile::WriteIffFile(Iff & iffData, const Filename & fileName)
buflen = GetFullPathName(".", 0, buffer, NULL);
buffer = new char[buflen + 1];
buflen = GetFullPathName(".", buflen + 1, buffer, NULL);
std::string srcPath = buffer;
delete[] buffer;
// get the destination path
std::string correctPath(fileName.getDrive() + fileName.getPath());
@@ -139,8 +139,6 @@ inline void DataTableWriter::NamedDataTable::setName(const std::string& name)
std::string & DataTableWriterNamespace::unquotify(std::string &s)
{
static const std::string quote = "\"";
//First strip any beginning end quotes.
if (s.length() >= 2)
{