[MOAB-dev] r5930 - MOAB/trunk/src

tautges at mcs.anl.gov tautges at mcs.anl.gov
Tue Dec 18 16:47:36 CST 2012


Author: tautges
Date: 2012-12-18 16:47:35 -0600 (Tue, 18 Dec 2012)
New Revision: 5930

Modified:
   MOAB/trunk/src/Core.cpp
Log:
Removing an unaccessed block of code, good spot Iulian.



Modified: MOAB/trunk/src/Core.cpp
===================================================================
--- MOAB/trunk/src/Core.cpp	2012-12-18 22:08:43 UTC (rev 5929)
+++ MOAB/trunk/src/Core.cpp	2012-12-18 22:47:35 UTC (rev 5930)
@@ -2900,21 +2900,8 @@
     }
     std::cout << std::endl;
 
-      // if negative num_entities, list the set hierarchy too
-    if (0 > num_entities) {
-      Range sets;
-      result = this->get_entities_by_type(0, MBENTITYSET, sets);
-      if (MB_SUCCESS != result) return result;
-      for (Range::iterator rit = sets.begin(); rit != sets.end(); rit++) {
-        this->print(*rit, "", true);
-        result = this->get_number_entities_by_handle(*rit, num_ents);
-        std::cout << "(" << num_ents << " total entities)" << std::endl;
-      }
-    }
-    
     return MB_SUCCESS;
   }
-      
   else if (NULL == entities && num_entities < 0) {
 
       // list all entities of all types
@@ -2925,7 +2912,6 @@
 
     return list_entities(temp_range);
   }
-
   else if (NULL == entities && num_entities > 0) {
 
       // list all entities of type == num_entities
@@ -2934,7 +2920,6 @@
 
     return list_entities(temp_range);
   }
-
   else {
     ErrorCode tmp_result;
     for (int i = 0; i < num_entities; i++) {



More information about the moab-dev mailing list