]> AND Private Git Repository - loba.git/blobdiff - process.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Delete process::sum_of_to_send().
[loba.git] / process.cpp
index a0447de98c2f582b4c21dd3adec00597973414a4..cd1143316289affc356406ed0bb75ee740d9d17c 100644 (file)
@@ -1,7 +1,6 @@
 #include <algorithm>
 #include <tr1/functional>
 #include <iterator>
-#include <numeric>
 #include <stdexcept>
 #include <sstream>
 #include <xbt/log.h>
@@ -175,17 +174,6 @@ int process::run()
     return 0;
 }
 
-double process::sum_of_to_send() const
-{
-    using std::tr1::bind;
-    using std::tr1::placeholders::_1;
-    using std::tr1::placeholders::_2;
-
-    return std::accumulate(neigh.begin(), neigh.end(), 0.0,
-                           bind(std::plus<double>(),
-                                _1, bind(&neighbor::get_to_send, _2)));
-}
-
 double process::load_balance(double /*my_load*/)
 {
     if (lb_iter == 1)           // warn only once