From 5d14351042a36fd3bc5f94667bce8b89e22fa666 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 16 Sep 2015 13:57:48 +0200 Subject: [PATCH] crush/CrushTester.cc: remove unused variable Signed-off-by: Danny Al-Gaaf --- src/crush/CrushTester.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/crush/CrushTester.cc b/src/crush/CrushTester.cc index adf147bd093..d9ba0ab4a12 100644 --- a/src/crush/CrushTester.cc +++ b/src/crush/CrushTester.cc @@ -254,12 +254,6 @@ int CrushTester::random_placement(int ruleno, vector& out, int maxout, vect crush.get_max_devices() == 0) return -EINVAL; - // compute each device's proportional weight - vector proportional_weights( weight.size() ); - for (unsigned i = 0; i < weight.size(); i++) { - proportional_weights[i] = (float) weight[i] / (float) total_weight; - } - // determine the real maximum number of devices to return int devices_requested = min(maxout, get_maximum_affected_by_rule(ruleno)); bool accept_placement = false;