]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/crush: removed unused code 55037/head
authorRonen Friedman <rfriedma@redhat.com>
Mon, 1 Jan 2024 07:11:41 +0000 (09:11 +0200)
committerRonen Friedman <rfriedma@redhat.com>
Mon, 1 Jan 2024 07:11:41 +0000 (09:11 +0200)
to fix a compiler warning re unused variable.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/test/crush/crush.cc

index 2d87958b383c8d2a0d067d6ee1ae63af02d48677..1f53084a70afbc707f0158874a13d10affbb6e9f 100644 (file)
@@ -219,11 +219,6 @@ TEST_F(CRUSHTest, indep_out_progressive) {
       c->do_rule(0, x, out, 7, weight, 0);
       cout << "(" << i << "/" << weight.size() << " out) "
           << x << " -> " << out << std::endl;
-      int num_none = 0;
-      for (unsigned k=0; k<out.size(); ++k) {
-       if (out[k] == CRUSH_ITEM_NONE)
-         num_none++;
-      }
       ASSERT_EQ(0, get_num_dups(out));
 
       // make sure nothing moved