Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
who needs such an empty constructor?
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 12 Jul 2015 21:54:27 +0000 (23:54 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 12 Jul 2015 21:54:27 +0000 (23:54 +0200)
src/surf/host_interface.cpp
src/surf/host_interface.hpp

index 8dacee6..40ba2fa 100644 (file)
@@ -71,16 +71,12 @@ void HostModel::adjustWeightOfDummyCpuActions()
     int is_active = lmm_constraint_used(cpu_cas01->getModel()->getMaxminSystem(), cpu_cas01->getConstraint());
     // int is_active_old = constraint_is_active(cpu_cas01);
 
     int is_active = lmm_constraint_used(cpu_cas01->getModel()->getMaxminSystem(), cpu_cas01->getConstraint());
     // int is_active_old = constraint_is_active(cpu_cas01);
 
-    // {
-    //   xbt_assert(is_active == is_active_old, "%d %d", is_active, is_active_old);
-    // }
-
     if (is_active) {
       /* some tasks exist on this VM */
       XBT_DEBUG("set the weight of the dummy CPU action on PM to 1");
 
     if (is_active) {
       /* some tasks exist on this VM */
       XBT_DEBUG("set the weight of the dummy CPU action on PM to 1");
 
-      /* FIXME: we shoud use lmm_update_variable_weight() ? */
-      /* FIXME: If we assgign 1.05 and 0.05, the system makes apparently wrong values. */
+      /* FIXME: we should use lmm_update_variable_weight() ? */
+      /* FIXME: If we assign 1.05 and 0.05, the system makes apparently wrong values. */
       ws_vm->p_action->setPriority(1);
 
     } else {
       ws_vm->p_action->setPriority(1);
 
     } else {
@@ -95,11 +91,6 @@ void HostModel::adjustWeightOfDummyCpuActions()
 /************
  * Resource *
  ************/
 /************
  * Resource *
  ************/
-Host::Host()
-{
-  surf_callback_emit(hostCreatedCallbacks, this);
-}
-
 Host::Host(ModelPtr model, const char *name, xbt_dict_t props,
                                 xbt_dynar_t storage, RoutingEdgePtr netElm, CpuPtr cpu)
  : Resource(model, name, props)
 Host::Host(ModelPtr model, const char *name, xbt_dict_t props,
                                 xbt_dynar_t storage, RoutingEdgePtr netElm, CpuPtr cpu)
  : Resource(model, name, props)
index a4a3bda..71ee1b7 100644 (file)
@@ -132,11 +132,6 @@ public:
  */
 class Host : public Resource {
 public:
  */
 class Host : public Resource {
 public:
-  /**
-   * @brief Host constructor
-   */
-  Host();
-
   /**
    * @brief Host constructor
    *
   /**
    * @brief Host constructor
    *