From: Martin Quinson Date: Sun, 12 Jul 2015 21:54:27 +0000 (+0200) Subject: who needs such an empty constructor? X-Git-Tag: v3_12~526 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6f10411d6494e05f2a30427f6f7f41f898eec8e5?ds=sidebyside who needs such an empty constructor? --- diff --git a/src/surf/host_interface.cpp b/src/surf/host_interface.cpp index 8dacee6698..40ba2faf14 100644 --- a/src/surf/host_interface.cpp +++ b/src/surf/host_interface.cpp @@ -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); - // { - // 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"); - /* 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 { @@ -95,11 +91,6 @@ void HostModel::adjustWeightOfDummyCpuActions() /************ * 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) diff --git a/src/surf/host_interface.hpp b/src/surf/host_interface.hpp index a4a3bda834..71ee1b7430 100644 --- a/src/surf/host_interface.hpp +++ b/src/surf/host_interface.hpp @@ -132,11 +132,6 @@ public: */ class Host : public Resource { public: - /** - * @brief Host constructor - */ - Host(); - /** * @brief Host constructor *