[MOAB-dev] r1300 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Fri Oct 5 18:10:57 CDT 2007


Author: kraftche
Date: 2007-10-05 18:10:57 -0500 (Fri, 05 Oct 2007)
New Revision: 1300

Modified:
   MOAB/trunk/MeshSetSequence.cpp
Log:
remove unnecessary special case

Modified: MOAB/trunk/MeshSetSequence.cpp
===================================================================
--- MOAB/trunk/MeshSetSequence.cpp	2007-10-05 22:38:30 UTC (rev 1299)
+++ MOAB/trunk/MeshSetSequence.cpp	2007-10-05 23:10:57 UTC (rev 1300)
@@ -97,13 +97,11 @@
     // remove from linked list of free entities
   if (mFirstFreeIndex == index) 
     mFirstFreeIndex = next_free(index);
-  else if (next_free(mFirstFreeIndex) == index)
-    next_free(mFirstFreeIndex) = next_free(index);
   else {
 #ifndef NDEBUG
     int counter = 0;
 #endif
-    MBEntityID i = next_free(mFirstFreeIndex);
+    MBEntityID i = mFirstFreeIndex;
     while (next_free(i) != index) {
       assert( ++counter <= (number_allocated() - number_entities()) );
       i = next_free(i);




More information about the moab-dev mailing list