浏览代码

Remove unused variable and remove virtual restore

Eric Ramat 1 年之前
父节点
当前提交
abc46b45fe
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 0 1
      src/artis-star/common/scheduler/HeapScheduler.hpp
  2. 2 2
      src/artis-star/common/state/States.hpp

+ 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 =