TCharm: Eliminate unused variables
authorPhil Miller <mille121@illinois.edu>
Tue, 6 Dec 2011 00:06:55 +0000 (18:06 -0600)
committerPhil Miller <mille121@illinois.edu>
Wed, 21 Dec 2011 22:29:34 +0000 (16:29 -0600)
src/libs/ck-libs/tcharm/tcharm.C

index beaa4a39ca36fdd33b475c421e78e622b37c180d..acc4588a7a3483f2f3b7f21cd221e7104145af5f 100644 (file)
@@ -527,7 +527,6 @@ void TCharm::evacuate(){
        */
        //CkClearAllArrayElementsCPP();
        if(CkpvAccess(startedEvac)){
        */
        //CkClearAllArrayElementsCPP();
        if(CkpvAccess(startedEvac)){
-               int nextPE = getNextPE(CkArrayIndex1D(thisIndex));
 //             resumeAfterMigration=true;
                CcdCallFnAfter((CcdVoidFn)CkEmmigrateElement, (void *)myRec, 1);
                suspend();
 //             resumeAfterMigration=true;
                CcdCallFnAfter((CcdVoidFn)CkEmmigrateElement, (void *)myRec, 1);
                suspend();
@@ -746,8 +745,6 @@ CkGroupID CkCreatePropMap(void);
 
 static CProxy_TCharm TCHARM_Build_threads(TCharmInitMsg *msg)
 {
 
 static CProxy_TCharm TCHARM_Build_threads(TCharmInitMsg *msg)
 {
-  char *tmp;
-  char **argv=CkGetArgv();
   CkArrayOptions opts(msg->numElements);
   CkAssert(CkpvAccess(mapCreated)==1);
 
   CkArrayOptions opts(msg->numElements);
   CkAssert(CkpvAccess(mapCreated)==1);
 
@@ -777,7 +774,6 @@ static CProxy_TCharm TCHARM_Build_threads(TCharmInitMsg *msg)
     mapID = CkCreatePropMap();
   }
   opts.setMap(mapID);
     mapID = CkCreatePropMap();
   }
   opts.setMap(mapID);
-  int nElem=msg->numElements; //<- save it because msg will be deleted.
   return CProxy_TCharm::ckNew(msg,opts);
 }
 
   return CProxy_TCharm::ckNew(msg,opts);
 }