Remove unreferenced variables

develop
Quietust 2012-01-11 10:57:05 -06:00
parent 6d2ce7b8a9
commit 555183cb25
4 changed files with 0 additions and 6 deletions

@ -190,8 +190,6 @@ bool Translation::readName(t_name & name, df_name * source)
bool Translation::copyName(df_name * source, df_name * target) bool Translation::copyName(df_name * source, df_name * target)
{ {
uint8_t buf[28];
if (source == target) if (source == target)
return true; return true;
Core & c = Core::getInstance(); Core & c = Core::getInstance();

@ -136,7 +136,6 @@ int32_t Units::GetCreatureInBox (int32_t index, df_unit ** furball,
return -1; return -1;
Process *p = d->owner; Process *p = d->owner;
uint16_t coords[3];
uint32_t size = creatures->size(); uint32_t size = creatures->size();
while (uint32_t(index) < size) while (uint32_t(index) < size)
{ {
@ -575,7 +574,6 @@ bool Units::ReadOwnedItemsByIdx(const uint32_t index, std::vector<int32_t> & ite
bool Units::ReadOwnedItemsByPtr(const df_unit * temp, std::vector<int32_t> & items) bool Units::ReadOwnedItemsByPtr(const df_unit * temp, std::vector<int32_t> & items)
{ {
unsigned int i;
if(!d->Started) return false; if(!d->Started) return false;
items = temp->owned_items; items = temp->owned_items;
return true; return true;

@ -72,7 +72,6 @@ DFhackCExport command_result df_autodump (Core * c, vector <string> & parameters
} }
} }
c->Suspend(); c->Suspend();
DFHack::occupancies40d * occupancies;
DFHack::VersionInfo *mem = c->vinfo; DFHack::VersionInfo *mem = c->vinfo;
DFHack::Gui * Gui = c->getGui(); DFHack::Gui * Gui = c->getGui();
DFHack::Items * Items = c->getItems(); DFHack::Items * Items = c->getItems();

@ -54,7 +54,6 @@ DFhackCExport command_result plugin_shutdown ( Core * c )
DFhackCExport command_result df_cprobe (Core * c, vector <string> & parameters) DFhackCExport command_result df_cprobe (Core * c, vector <string> & parameters)
{ {
Console & con = c->con; Console & con = c->con;
BEGIN_PROBE:
c->Suspend(); c->Suspend();
DFHack::Gui *Gui = c->getGui(); DFHack::Gui *Gui = c->getGui();
DFHack::Units * cr = c->getUnits(); DFHack::Units * cr = c->getUnits();