cleanup: Remove some useless code.

master
cybersphinx 2012-03-17 19:49:11 +01:00
parent f1e38830fd
commit dc1c7ca57d
1 changed files with 1 additions and 6 deletions

View File

@ -2316,7 +2316,6 @@ static void intProcessObject(UDWORD id)
{ {
BASE_OBJECT *psObj; BASE_OBJECT *psObj;
STRUCTURE *psStruct; STRUCTURE *psStruct;
bool IsDeliveryRepos = false;
SDWORD butIndex; SDWORD butIndex;
UDWORD statButID; UDWORD statButID;
@ -2442,10 +2441,7 @@ static void intProcessObject(UDWORD id)
} }
} }
psObj = intGetObject(id); intResetWindows(psObj);
if(!IsDeliveryRepos) {
intResetWindows(psObj);
}
// If a construction droid button was clicked then // If a construction droid button was clicked then
// clear all other selections and select it. // clear all other selections and select it.
@ -2482,7 +2478,6 @@ static void intProcessObject(UDWORD id)
} }
else if (psObj->type == OBJ_STRUCTURE) else if (psObj->type == OBJ_STRUCTURE)
{ {
if (StructIsFactory((STRUCTURE *)psObj)) if (StructIsFactory((STRUCTURE *)psObj))
{ {
//might need to cancel the hold on production //might need to cancel the hold on production