[vlc-commits] vlc_common.h: Remove unused xcalloc()

Hugo Beauzée-Luyssen git at videolan.org
Wed Aug 22 11:44:34 CEST 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Aug 21 16:23:53 2018 +0200| [ee525e65e72168c2210462b8ead2631a8b242f54] | committer: Hugo Beauzée-Luyssen

vlc_common.h: Remove unused xcalloc()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ee525e65e72168c2210462b8ead2631a8b242f54
---

 include/vlc_common.h | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index 4f2d0baf52..3be979dab5 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -1154,14 +1154,6 @@ static inline void *xrealloc(void *ptr, size_t len)
     return nptr;
 }
 
-static inline void *xcalloc(size_t n, size_t size)
-{
-    void *ptr = calloc(n, size);
-    if (unlikely(ptr == NULL && (n > 0 || size > 0)))
-        abort ();
-    return ptr;
-}
-
 static inline char *xstrdup (const char *str)
 {
     char *ptr = strdup (str);



More information about the vlc-commits mailing list