]> git.sesse.net Git - ffmpeg/commitdiff
avutil: remove obsolete FF_API_FIND_OPT cruft
authorJames Almer <jamrial@gmail.com>
Mon, 15 Sep 2014 00:15:33 +0000 (21:15 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 5 Oct 2014 20:09:53 +0000 (17:09 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
libavutil/opt.c
libavutil/opt.h
libavutil/version.h

index ee72a9647112c56112c9716955895289b8eeac0e..6aabfe31375150946b669c56914b1a49636649b8 100644 (file)
 
 #include <float.h>
 
-#if FF_API_FIND_OPT
-//FIXME order them and do a bin search
-const AVOption *av_find_opt(void *v, const char *name, const char *unit, int mask, int flags)
-{
-    const AVOption *o = NULL;
-
-    while ((o = av_next_option(v, o))) {
-        if (!strcmp(o->name, name) && (!unit || (o->unit && !strcmp(o->unit, unit))) && (o->flags & mask) == flags)
-            return o;
-    }
-    return NULL;
-}
-#endif
-
 #if FF_API_OLD_AVOPTIONS
 const AVOption *av_next_option(void *obj, const AVOption *last)
 {
index 4905ee30c0451b4eb5aa24b78a7042873a16cdd3..1b72a105c9807a401e85749387ea96cc1af0d67a 100644 (file)
@@ -378,25 +378,6 @@ typedef struct AVOptionRanges {
 } AVOptionRanges;
 
 
-#if FF_API_FIND_OPT
-/**
- * Look for an option in obj. Look only for the options which
- * have the flags set as specified in mask and flags (that is,
- * for which it is the case that (opt->flags & mask) == flags).
- *
- * @param[in] obj a pointer to a struct whose first element is a
- * pointer to an AVClass
- * @param[in] name the name of the option to look for
- * @param[in] unit the unit of the option to look for, or any if NULL
- * @return a pointer to the option found, or NULL if no option
- * has been found
- *
- * @deprecated use av_opt_find.
- */
-attribute_deprecated
-const AVOption *av_find_opt(void *obj, const char *name, const char *unit, int mask, int flags);
-#endif
-
 #if FF_API_OLD_AVOPTIONS
 /**
  * Set the field of obj with the given name to value.
index f93798de2ac67c80b157a31c9a55d1d6135ca250..e38da7cf332393f9965e3d1dbb781c100832b748 100644 (file)
@@ -80,9 +80,6 @@
  * @{
  */
 
-#ifndef FF_API_FIND_OPT
-#define FF_API_FIND_OPT                 (LIBAVUTIL_VERSION_MAJOR < 54)
-#endif
 #ifndef FF_API_OLD_AVOPTIONS
 #define FF_API_OLD_AVOPTIONS            (LIBAVUTIL_VERSION_MAJOR < 55)
 #endif