Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Remove superflous static function
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 29 Mar 2016 11:22:19 +0000 (13:22 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 29 Mar 2016 12:54:36 +0000 (14:54 +0200)
src/mc/mc_visited.cpp

index e802ccb..0e54ecb 100644 (file)
@@ -32,18 +32,6 @@ namespace mc {
 
 std::vector<std::unique_ptr<simgrid::mc::VisitedState>> visited_states;
 
-static int is_exploration_stack_state(simgrid::mc::VisitedState* state){
-  xbt_fifo_item_t item = xbt_fifo_get_first_item(mc_stack);
-  while (item) {
-    if (((simgrid::mc::State*)xbt_fifo_get_item_content(item))->num == state->num){
-      ((simgrid::mc::State*)xbt_fifo_get_item_content(item))->in_visited_states = 0;
-      return 1;
-    }
-    item = xbt_fifo_get_next_item(item);
-  }
-  return 0;
-}
-
 /**
  * \brief Save the current state
  * \return Snapshot of the current state.