Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
further objectification of jedule bindings
[simgrid.git] / src / instr / jedule / jedule_events.cpp
index 93f494c..d363720 100644 (file)
@@ -5,7 +5,7 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "simgrid/jedule/jedule_events.hpp"
-#include "simgrid/jedule/jedule_output.hpp"
+#include "simgrid/jedule/jedule.hpp"
 #include <stdio.h>
 #include <stdlib.h>
 #include <string>
 namespace simgrid{
 namespace jedule{
 
-void Event::deleteEvent(){
+Event::~Event(){
   while (!this->resource_subsets.empty()){
     xbt_free(this->resource_subsets.back());
     this->resource_subsets.pop_back();
   }
-  delete this;
 }
 
 void Event::addResources(std::vector<sg_host_t> *host_selection) {