This function is unused.
Signed-off-by: Martin Wilck <[email protected]>
Reviewed-by: Benjamin Marzinski <[email protected]>
---
libmultipath/structs.c | 18 ------------------
libmultipath/structs.h | 3 +--
2 files changed, 1 insertion(+), 20 deletions(-)
diff --git a/libmultipath/structs.c b/libmultipath/structs.c
index dfa547b..1cbbea8 100644
--- a/libmultipath/structs.c
+++ b/libmultipath/structs.c
@@ -353,24 +353,6 @@ void cleanup_multipath_and_paths(struct multipath **pmpp)
free_multipath(*pmpp, FREE_PATHS);
}
-void
-drop_multipath (vector mpvec, char * wwid, enum free_path_mode free_paths)
-{
- int i;
- struct multipath * mpp;
-
- if (!mpvec)
- return;
-
- vector_foreach_slot (mpvec, mpp, i) {
- if (!strncmp(mpp->wwid, wwid, WWID_SIZE)) {
- free_multipath(mpp, free_paths);
- vector_del_slot(mpvec, i);
- return;
- }
- }
-}
-
void
free_multipathvec (vector mpvec, enum free_path_mode free_paths)
{
diff --git a/libmultipath/structs.h b/libmultipath/structs.h
index 9247e74..e7a0585 100644
--- a/libmultipath/structs.h
+++ b/libmultipath/structs.h
@@ -582,8 +582,7 @@ void free_pgvec (vector pgvec, enum free_path_mode
free_paths);
void free_multipath (struct multipath *, enum free_path_mode free_paths);
void cleanup_multipath(struct multipath **pmpp);
void cleanup_multipath_and_paths(struct multipath **pmpp);
-void free_multipath_attributes (struct multipath *);
-void drop_multipath (vector mpvec, char * wwid, enum free_path_mode
free_paths);
+void free_multipath_attributes(struct multipath *);
void free_multipathvec (vector mpvec, enum free_path_mode free_paths);
struct adapter_group * alloc_adaptergroup(void);
--
2.52.0