[vlc-devel] [PATCH v1 31/33] picture: remove unused picture_GetAndResetChain

Steve Lhomme robux4 at ycbcr.xyz
Fri Sep 25 16:47:07 CEST 2020


---
 include/vlc_picture.h | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/include/vlc_picture.h b/include/vlc_picture.h
index 364caa8a6a0..49195f7adf1 100644
--- a/include/vlc_picture.h
+++ b/include/vlc_picture.h
@@ -270,20 +270,6 @@ static inline bool picture_HasChainedPics(const picture_t *pic)
     return pic->p_next != NULL;
 }
 
-/**
- * Reset a picture chain.
- *
- * \return the picture chain that was contained in the picture
- */
-static inline vlc_picture_chain_t picture_GetAndResetChain(picture_t *pic)
-{
-    vlc_picture_chain_t chain = (vlc_picture_chain_t) { pic->p_next, pic->p_next };
-    while ( chain.tail && chain.tail->p_next ) // find the proper tail
-        chain.tail = chain.tail->p_next;
-    pic->p_next = NULL;
-    return chain;
-}
-
 
 /**
  * This function will create a new picture.
-- 
2.26.2



More information about the vlc-devel mailing list