shithub: opus-tools

Download patch

ref: 9288f9441bb801803b470c8ad89539ad7af0a980
parent: 7c39e6ab30e2e57467996ad9a2b4d6f6e75c071b
author: Mark Harris <mark.hsj@gmail.com>
date: Sun Jul 15 19:55:09 EDT 2018

Remove unused macros

--- a/src/opusdec.c
+++ b/src/opusdec.c
@@ -111,11 +111,6 @@
 /* 120ms at 48000 */
 #define MAX_FRAME_SIZE (960*6)
 
-#define readint(buf, base) (((buf[base+3]<<24)&0xff000000)| \
-                           ((buf[base+2]<<16)&0xff0000)| \
-                           ((buf[base+1]<<8)&0xff00)| \
-                           (buf[base]&0xff))
-
 #ifdef HAVE_LIBSNDIO
 struct sio_hdl *hdl;
 #endif
--- a/src/opusenc.c
+++ b/src/opusenc.c
@@ -85,15 +85,6 @@
 # define I64FORMAT "lld"
 #endif
 
-#ifdef VALGRIND
-# include <valgrind/memcheck.h>
-# define VG_UNDEF(x,y) VALGRIND_MAKE_MEM_UNDEFINED((x),(y))
-# define VG_CHECK(x,y) VALGRIND_CHECK_MEM_IS_DEFINED((x),(y))
-#else
-# define VG_UNDEF(x,y)
-# define VG_CHECK(x,y)
-#endif
-
 #define IMIN(a,b) ((a) < (b) ? (a) : (b))   /**< Minimum int value.   */
 #define IMAX(a,b) ((a) > (b) ? (a) : (b))   /**< Maximum int value.   */