Explorar el Código

Remove unused variable and remove virtual restore

Eric Ramat hace 1 año
padre
commit
abc46b45fe

+ 0 - 1
src/artis-star/common/scheduler/HeapScheduler.hpp

@@ -64,7 +64,6 @@ public:
 
   models_type get_current_models(const typename Time::type &time) const {
     models_type models;
-    typename models_type::iterator it;
 
     for (typename type::ordered_iterator it = type::ordered_begin();
          it != type::ordered_end() and it->get_time() == time; ++it) {

+ 2 - 2
src/artis-star/common/state/States.hpp

@@ -71,7 +71,7 @@ public:
     }
   }
 
-  virtual void restore(Dyn *model, const common::context::State<Time> &state) {
+  void restore(Dyn *model, const common::context::State<Time> &state) {
     unsigned int index = 0;
 
     for (typename std::vector<common::state::Any>::iterator it = states.begin();
@@ -83,7 +83,7 @@ public:
     }
   }
 
-  virtual void save(const Dyn *model, common::context::State<Time> &state) const {
+  void save(const Dyn *model, common::context::State<Time> &state) const {
     unsigned int index = 0;
 
     for (typename std::vector<common::state::Any>::const_iterator it =