Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill a useless constructor
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 18 Oct 2016 06:17:43 +0000 (08:17 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 18 Oct 2016 06:17:43 +0000 (08:17 +0200)
src/surf/HostImpl.cpp
src/surf/HostImpl.hpp
src/surf/virtual_machine.cpp

index 5346b02..2408c68 100644 (file)
@@ -104,12 +104,6 @@ HostImpl::HostImpl(simgrid::surf::HostModel* model, const char* name, xbt_dynar_
   params_.ramsize = 0;
 }
 
   params_.ramsize = 0;
 }
 
-HostImpl::HostImpl(simgrid::surf::HostModel* model, const char* name, lmm_constraint_t constraint, xbt_dynar_t storage)
-    : PropertyHolder(nullptr), storage_(storage)
-{
-  params_.ramsize = 0;
-}
-
 /** @brief use destroy() instead of this destructor */
 HostImpl::~HostImpl() = default;
 
 /** @brief use destroy() instead of this destructor */
 HostImpl::~HostImpl() = default;
 
index 6050e8e..d5d7933 100644 (file)
@@ -75,16 +75,6 @@ public:
    */
   HostImpl(HostModel* model, const char* name, xbt_dynar_t storage);
 
    */
   HostImpl(HostModel* model, const char* name, xbt_dynar_t storage);
 
-  /**
-   * @brief Host constructor
-   *
-   * @param model HostModel associated to this Host
-   * @param name The name of the Host
-   * @param constraint The lmm constraint associated to this Host if it is part of a LMM component
-   * @param storage The Storage associated to this Host
-   */
-  HostImpl(HostModel* model, const char* name, lmm_constraint_t constraint, xbt_dynar_t storage);
-
   /* Host destruction logic */
   /**************************/
   virtual ~HostImpl();
   /* Host destruction logic */
   /**************************/
   virtual ~HostImpl();
index cc3d623..aa27cf8 100644 (file)
@@ -105,7 +105,7 @@ double VMModel::nextOccuringEvent(double now)
  ************/
 
 VirtualMachine::VirtualMachine(HostModel* model, const char* name, simgrid::s4u::Host* host_PM)
  ************/
 
 VirtualMachine::VirtualMachine(HostModel* model, const char* name, simgrid::s4u::Host* host_PM)
-    : HostImpl(model, name, nullptr /*constraint*/, nullptr /*storage*/), hostPM_(host_PM)
+    : HostImpl(model, name, nullptr /*storage*/), hostPM_(host_PM)
 {
   /* Register this VM to the list of all VMs */
   allVms_.push_back(this);
 {
   /* Register this VM to the list of all VMs */
   allVms_.push_back(this);