From: Arnaud Giersch Date: Sat, 12 Oct 2019 21:01:02 +0000 (+0200) Subject: [sonar] Remove commented out code. X-Git-Tag: v3.25~536 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/160e1c1f510d6ff63dbca486199c0cb12a348c9b [sonar] Remove commented out code. --- diff --git a/examples/s4u/energy-exec-ptask/s4u-energy-exec-ptask.cpp b/examples/s4u/energy-exec-ptask/s4u-energy-exec-ptask.cpp index dfba87ae04..0c0d57a2b1 100644 --- a/examples/s4u/energy-exec-ptask/s4u-energy-exec-ptask.cpp +++ b/examples/s4u/energy-exec-ptask/s4u-energy-exec-ptask.cpp @@ -135,7 +135,6 @@ int main(int argc, char* argv[]) sg_host_energy_plugin_init(); simgrid::s4u::Engine e(&argc, argv); e.set_config("host/model:ptask_L07"); - //xbt_log_control_set("surf_energy.thresh:debug"); xbt_assert(argc == 2, "Usage: %s platform_file\n\tExample: %s ../platforms/energy_platform.xml\n", argv[0], argv[0]); diff --git a/src/plugins/vm/s4u_VirtualMachine.cpp b/src/plugins/vm/s4u_VirtualMachine.cpp index 3cf72b4112..4f6345537f 100644 --- a/src/plugins/vm/s4u_VirtualMachine.cpp +++ b/src/plugins/vm/s4u_VirtualMachine.cpp @@ -32,9 +32,6 @@ VirtualMachine::VirtualMachine(const std::string& name, s4u::Host* physical_host VirtualMachine::VirtualMachine(const std::string& name, s4u::Host* physical_host, int core_amount, size_t ramsize) : Host(name), pimpl_vm_(new vm::VirtualMachineImpl(this, physical_host, core_amount, ramsize)) { - // xbt_assert(s4u::Host::by_name(name) == nullptr, - // "Cannot create a VM named %s: this name is already used by a host or a VM", get_cname()); - XBT_DEBUG("Create VM %s", get_cname()); /* Currently, a VM uses the network resource of its physical host */