From: Martin Quinson Date: Fri, 13 Jan 2017 11:57:15 +0000 (+0100) Subject: remove a now unused parameter X-Git-Tag: v3_15~549 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6a16a8368da7bc0c1c2d15437e662e26262219f9?ds=sidebyside remove a now unused parameter --- diff --git a/src/plugins/vm/VirtualMachineImpl.cpp b/src/plugins/vm/VirtualMachineImpl.cpp index 0f5dcc591e..2e9179a4f2 100644 --- a/src/plugins/vm/VirtualMachineImpl.cpp +++ b/src/plugins/vm/VirtualMachineImpl.cpp @@ -95,7 +95,7 @@ double VMModel::nextOccuringEvent(double now) ************/ VirtualMachineImpl::VirtualMachineImpl(simgrid::s4u::VirtualMachine* piface, simgrid::s4u::Host* host_PM) - : HostImpl(piface, nullptr /*storage*/), hostPM_(host_PM) + : HostImpl(piface), hostPM_(host_PM) { /* Register this VM to the list of all VMs */ allVms_.push_back(piface); diff --git a/src/s4u/s4u_host.cpp b/src/s4u/s4u_host.cpp index bffb0714c6..28ad5980d6 100644 --- a/src/s4u/s4u_host.cpp +++ b/src/s4u/s4u_host.cpp @@ -46,7 +46,7 @@ Host::Host(const char* name) { xbt_assert(Host::by_name_or_null(name) == nullptr, "Refusing to create a second host named '%s'.", name); host_list[name_] = this; - new simgrid::surf::HostImpl(this, nullptr); + new simgrid::surf::HostImpl(this); } Host::~Host() diff --git a/src/surf/HostImpl.cpp b/src/surf/HostImpl.cpp index 59f55b00a9..cf09097b38 100644 --- a/src/surf/HostImpl.cpp +++ b/src/surf/HostImpl.cpp @@ -91,7 +91,7 @@ Action* HostModel::executeParallelTask(int host_nb, simgrid::s4u::Host** host_li /************ * Resource * ************/ -HostImpl::HostImpl(s4u::Host* host, xbt_dynar_t storage) : storage_(storage), piface_(host) +HostImpl::HostImpl(s4u::Host* host) : piface_(host) { piface_->pimpl_ = this; } diff --git a/src/surf/HostImpl.hpp b/src/surf/HostImpl.hpp index 44858a6415..13c19a96f7 100644 --- a/src/surf/HostImpl.hpp +++ b/src/surf/HostImpl.hpp @@ -63,7 +63,7 @@ public: class HostImpl : public simgrid::surf::PropertyHolder { public: - HostImpl(s4u::Host* host, xbt_dynar_t storage); + HostImpl(s4u::Host* host); virtual ~HostImpl(); public: