diff options
author | David Teigland <teigland@redhat.com> | 2015-11-30 14:17:33 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2015-12-01 09:10:01 -0600 |
commit | 1e43ec15ce0a34ac29c82f232f21a2b0ea7f3a26 (patch) | |
tree | 98974dd23323b15be66ab906a222e9f464abfef5 | |
parent | aa4932674aa6c7e1f2526781caaa98a1920fd72a (diff) | |
download | lvm2-1e43ec15ce0a34ac29c82f232f21a2b0ea7f3a26.tar.gz |
toollib: remove unused function
-rw-r--r-- | tools/toollib.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tools/toollib.c b/tools/toollib.c index ce1cddaf3..f97947572 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -1997,35 +1997,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 |