From dc1c7ca57db1cb02446e77edde7eaf0a26c19fb7 Mon Sep 17 00:00:00 2001 From: cybersphinx Date: Sat, 17 Mar 2012 19:49:11 +0100 Subject: [PATCH] cleanup: Remove some useless code. --- src/hci.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/hci.cpp b/src/hci.cpp index a751db450..8c3229301 100644 --- a/src/hci.cpp +++ b/src/hci.cpp @@ -2316,7 +2316,6 @@ static void intProcessObject(UDWORD id) { BASE_OBJECT *psObj; STRUCTURE *psStruct; - bool IsDeliveryRepos = false; SDWORD butIndex; UDWORD statButID; @@ -2442,10 +2441,7 @@ static void intProcessObject(UDWORD id) } } - psObj = intGetObject(id); - if(!IsDeliveryRepos) { - intResetWindows(psObj); - } + intResetWindows(psObj); // If a construction droid button was clicked then // clear all other selections and select it. @@ -2482,7 +2478,6 @@ static void intProcessObject(UDWORD id) } else if (psObj->type == OBJ_STRUCTURE) { - if (StructIsFactory((STRUCTURE *)psObj)) { //might need to cancel the hold on production