X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/ea9e469b934dd81706ec3f727156b9057e4cf2bb..29d6013f6a85f43d958add37f8317cf038cf335b:/process.cpp?ds=inline diff --git a/process.cpp b/process.cpp index a0447de..cd11433 100644 --- a/process.cpp +++ b/process.cpp @@ -1,7 +1,6 @@ #include #include #include -#include #include #include #include @@ -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(), - _1, bind(&neighbor::get_to_send, _2))); -} - double process::load_balance(double /*my_load*/) { if (lb_iter == 1) // warn only once