From 96bcba9cd94879794de477ae7c5c04971fbd6f32 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 4 Feb 2018 20:49:28 +0100 Subject: Remove serd_uri_to_path() --- include/serd/serd.h | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'include/serd') diff --git a/include/serd/serd.h b/include/serd/serd.h index 32488e18..cdcadcdb 100644 --- a/include/serd/serd.h +++ b/include/serd/serd.h @@ -61,18 +61,6 @@ SERD_API \ SERD_CONST_FUNC -#ifndef SERD_DISABLE_DEPRECATED -# if defined(__clang__) && __clang_major__ >= 7 -# define SERD_DEPRECATED_BY(rep) __attribute__((deprecated("", rep))) -# elif defined(__GNUC__) && __GNUC__ > 4 -# define SERD_DEPRECATED_BY(rep) __attribute__((deprecated("Use " rep))) -# elif defined(__GNUC__) -# define SERD_DEPRECATED_BY(rep) __attribute__((deprecated)) -# else -# define SERD_DEPRECATED_BY(rep) -# endif -#endif - #ifdef __cplusplus extern "C" { # if defined(__GNUC__) @@ -361,22 +349,6 @@ typedef size_t (*SerdSink)(const void* SERD_NONNULL buf, static const SerdURI SERD_URI_NULL = {{NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}}; -#ifndef SERD_DISABLE_DEPRECATED - -/** - Return the local path for `uri`, or NULL if `uri` is not a file URI. - Note this (inappropriately named) function only removes the file scheme if - necessary, and returns `uri` unmodified if it is an absolute path. Percent - encoding and other issues are not handled, to properly convert a file URI to - a path, use serd_file_uri_parse(). -*/ -SERD_API -SERD_DEPRECATED_BY("serd_file_uri_parse") -const uint8_t* SERD_NULLABLE -serd_uri_to_path(const uint8_t* SERD_NONNULL uri); - -#endif - /** Get the unescaped path and hostname from a file URI. -- cgit v1.2.1