diff --git a/libavutil/avutil.h b/libavutil/avutil.h index cab3fe590c..fb144b4381 100644 --- a/libavutil/avutil.h +++ b/libavutil/avutil.h @@ -334,19 +334,6 @@ unsigned av_int_list_length_for_size(unsigned elsize, #define av_int_list_length(list, term) \ av_int_list_length_for_size(sizeof(*(list)), list, term) -#if FF_API_AV_FOPEN_UTF8 -/** - * Open a file using a UTF-8 filename. - * The API of this function matches POSIX fopen(), errors are returned through - * errno. - * @deprecated Avoid using it, as on Windows, the FILE* allocated by this - * function may be allocated with a different CRT than the caller - * who uses the FILE*. No replacement provided in public API. - */ -attribute_deprecated -FILE *av_fopen_utf8(const char *path, const char *mode); -#endif - /** * Return the fractional representation of the internal time base. */ diff --git a/libavutil/file.c b/libavutil/file.c index 4855b91963..fc20e63d48 100644 --- a/libavutil/file.c +++ b/libavutil/file.c @@ -154,9 +154,3 @@ void av_file_unmap(uint8_t *bufptr, size_t size) av_free(bufptr); #endif } - -#if FF_API_AV_FOPEN_UTF8 -int av_tempfile(const char *prefix, char **filename, int log_offset, void *log_ctx) { - return avpriv_tempfile(prefix, filename, log_offset, log_ctx); -} -#endif diff --git a/libavutil/file.h b/libavutil/file.h index fc87a9cd6a..b5a762c28f 100644 --- a/libavutil/file.h +++ b/libavutil/file.h @@ -60,21 +60,4 @@ int av_file_map(const char *filename, uint8_t **bufptr, size_t *size, */ void av_file_unmap(uint8_t *bufptr, size_t size); -#if FF_API_AV_FOPEN_UTF8 -/** - * Wrapper to work around the lack of mkstemp() on mingw. - * Also, tries to create file in /tmp first, if possible. - * *prefix can be a character constant; *filename will be allocated internally. - * @return file descriptor of opened file (or negative value corresponding to an - * AVERROR code on error) - * and opened file name in **filename. - * @note On very old libcs it is necessary to set a secure umask before - * calling this, av_tempfile() can't call umask itself as it is used in - * libraries and could interfere with the calling application. - * @deprecated as fd numbers cannot be passed saftely between libs on some platforms - */ -attribute_deprecated -int av_tempfile(const char *prefix, char **filename, int log_offset, void *log_ctx); -#endif - #endif /* AVUTIL_FILE_H */ diff --git a/libavutil/file_open.c b/libavutil/file_open.c index 5f6f17a881..ab08e5d67f 100644 --- a/libavutil/file_open.c +++ b/libavutil/file_open.c @@ -188,10 +188,3 @@ FILE *avpriv_fopen_utf8(const char *path, const char *mode) return NULL; return fdopen(fd, mode); } - -#if FF_API_AV_FOPEN_UTF8 -FILE *av_fopen_utf8(const char *path, const char *mode) -{ - return avpriv_fopen_utf8(path, mode); -} -#endif diff --git a/libavutil/version.h b/libavutil/version.h index a94f833a60..947a3fe74e 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -105,7 +105,6 @@ * @{ */ -#define FF_API_AV_FOPEN_UTF8 (LIBAVUTIL_VERSION_MAJOR < 59) #define FF_API_PKT_DURATION (LIBAVUTIL_VERSION_MAJOR < 59) #define FF_API_REORDERED_OPAQUE (LIBAVUTIL_VERSION_MAJOR < 59) #define FF_API_FRAME_PICTURE_NUMBER (LIBAVUTIL_VERSION_MAJOR < 59)