summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-11-30 14:17:33 -0600
committerDavid Teigland <teigland@redhat.com>2015-11-30 14:17:33 -0600
commit7f77dd08e74830532c9a0ccf63f4b2d122b68f7a (patch)
tree82246639390ea41c9726d1e9a60ea360f05a390e
parent1f69a11ea7f4eec87a8d8d45149a9e3455e0fd0a (diff)
downloadlvm2-dev-dct-dupvgnames-C.tar.gz
toollib: remove unused functiondev-dct-dupvgnames-C
-rw-r--r--tools/toollib.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/tools/toollib.c b/tools/toollib.c
index fe1a87c04..294857a86 100644
--- a/tools/toollib.c
+++ b/tools/toollib.c
@@ -1996,35 +1996,6 @@ endvg:
}
/*
- * Copy the contents of a str_list of VG names to a name list, filling
- * in the vgid with NULL (unknown).
- */
-static int _copy_str_to_vgnameid_list(struct cmd_context *cmd, struct dm_list *sll,
- struct dm_list *vgnll)
-{
- const char *vgname;
- struct dm_str_list *sl;
- struct vgnameid_list *vgnl;
-
- dm_list_iterate_items(sl, sll) {
- vgname = sl->str;
-
- vgnl = dm_pool_alloc(cmd->mem, sizeof(*vgnl));
- if (!vgnl) {
- log_error("vgnameid_list allocation failed.");
- return ECMD_FAILED;
- }
-
- vgnl->vgid = NULL;
- vgnl->vg_name = dm_pool_strdup(cmd->mem, vgname);
-
- dm_list_add(vgnll, &vgnl->list);
- }
-
- return ECMD_PROCESSED;
-}
-
-/*
* Check if a command line VG name is ambiguous, i.e. there are multiple VGs on
* the system that have the given name. If *one* VG with the given name is
* local and the rest are foreign, then use the local VG (removing foreign VGs