diff mbox series

[FFmpeg-devel,13/16] avutil/internal: Remove unused FF_SYMVER

Message ID AS8P250MB074499C635269743D3D7560F8F779@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 26325cceb020608928800b8fe5f4a0f6e60468eb
Headers show
Series [FFmpeg-devel,01/11] avcodec/mpeg4video: Factor non-codec stuff out into a header of its own | expand

Commit Message

Andreas Rheinhardt Aug. 28, 2022, 11:34 p.m. UTC
It is unused since d63443b9684fa7b3e086634f7b44b203b6d9221e.
Furthermore, it was always in the wrong header:
libavutil/internal.h is auto-included almost everywhere, but
FF_SYMVER would only ever be used at a few places, so a proper
header of its own would be appropriate for it.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavutil/internal.h | 28 ----------------------------
 1 file changed, 28 deletions(-)
diff mbox series

Patch

diff --git a/libavutil/internal.h b/libavutil/internal.h
index c118936598..8ee5a101c6 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -117,34 +117,6 @@ 
 #   define NULL_IF_CONFIG_SMALL(x) x
 #endif
 
-/**
- * Define a function with only the non-default version specified.
- *
- * On systems with ELF shared libraries, all symbols exported from
- * FFmpeg libraries are tagged with the name and major version of the
- * library to which they belong.  If a function is moved from one
- * library to another, a wrapper must be retained in the original
- * location to preserve binary compatibility.
- *
- * Functions defined with this macro will never be used to resolve
- * symbols by the build-time linker.
- *
- * @param type return type of function
- * @param name name of function
- * @param args argument list of function
- * @param ver  version tag to assign function
- */
-#if HAVE_SYMVER_ASM_LABEL
-#   define FF_SYMVER(type, name, args, ver)                     \
-    type ff_##name args __asm__ (EXTERN_PREFIX #name "@" ver);  \
-    type ff_##name args
-#elif HAVE_SYMVER_GNU_ASM
-#   define FF_SYMVER(type, name, args, ver)                             \
-    __asm__ (".symver ff_" #name "," EXTERN_PREFIX #name "@" ver);      \
-    type ff_##name args;                                                \
-    type ff_##name args
-#endif
-
 /**
  * Return NULL if a threading library has not been enabled.
  * Used to disable threading functions in AVCodec definitions