Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill useless computation.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 17 Nov 2022 15:19:56 +0000 (16:19 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 17 Nov 2022 15:19:56 +0000 (16:19 +0100)
src/surf/host_clm03.cpp

index 77cb7cb..f469de7 100644 (file)
@@ -63,12 +63,6 @@ Action* HostCLM03Model::io_stream(s4u::Host* src_host, DiskImpl* src_disk, s4u::
   auto system = net_model->get_maxmin_system();
   auto* action = net_model->communicate(src_host, dst_host, size, -1, true);
 
-  size_t nb_disks       = 0;
-  if (src_disk != nullptr)
-    nb_disks++;
-  if (dst_disk != nullptr)
-    nb_disks++;
-
   // We don't want to apply the network model bandwidth factor to the I/O constraints
   double bw_factor = net_model->get_bandwidth_factor();
   if (src_disk != nullptr){