From be970a7e85cd3659119ca349303f3dd2ef40592b Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 11 Jan 2018 16:11:21 +0100 Subject: [PATCH 20/25] cleanup: drop unused code (cherry picked from commit 3aedaa7f2aa3c8622538e2758bf905ceb156db4a) --- tools/pvmove.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tools/pvmove.c b/tools/pvmove.c index af3fec4..b3d1d89 100644 --- a/tools/pvmove.c +++ b/tools/pvmove.c @@ -329,8 +329,6 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd, uint32_t log_count = 0; int lv_found = 0; int lv_skipped = 0; - int lv_active_count = 0; - int lv_exclusive_count = 0; /* FIXME Cope with non-contiguous => splitting existing segments */ if (!(lv_mirr = lv_create_empty("pvmove%d", NULL, @@ -451,13 +449,6 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd, continue; } - if (vg_is_clustered(vg)) { - if (lv_is_active_exclusive_locally(lv)) - lv_exclusive_count++; - else if (lv_is_active(lv)) - lv_active_count++; - } - if (!_insert_pvmove_mirrors(cmd, lv_mirr, source_pvl, lv, *lvs_changed)) return_NULL; -- 1.8.3.1