This function is unused.

Signed-off-by: Martin Wilck <[email protected]>
---
 libmultipath/structs.c | 18 ------------------
 libmultipath/structs.h |  1 -
 2 files changed, 19 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..81c69b4 100644
--- a/libmultipath/structs.h
+++ b/libmultipath/structs.h
@@ -583,7 +583,6 @@ 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_multipathvec (vector mpvec, enum free_path_mode free_paths);
 
 struct adapter_group * alloc_adaptergroup(void);
-- 
2.52.0


Reply via email to