diff options
author | David Robillard <d@drobilla.net> | 2018-05-11 18:11:44 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-05-27 18:23:15 +0200 |
commit | 4bc530b356ed4b390816669725e684d038e48aa0 (patch) | |
tree | 4a79ccbd7e3fa8dc53f85d93fab19d09f99c5c0d /src/string_utils.h | |
parent | 1f4990c7d2e297dc0252ff193e66339d8db38837 (diff) | |
download | serd-4bc530b356ed4b390816669725e684d038e48aa0.tar.gz serd-4bc530b356ed4b390816669725e684d038e48aa0.tar.bz2 serd-4bc530b356ed4b390816669725e684d038e48aa0.zip |
Clean up node construction API
Diffstat (limited to 'src/string_utils.h')
-rw-r--r-- | src/string_utils.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/string_utils.h b/src/string_utils.h index ab6ece0e..5f0dec01 100644 --- a/src/string_utils.h +++ b/src/string_utils.h @@ -102,22 +102,6 @@ serd_update_flags(const uint8_t c, SerdNodeFlags* const flags) } } -static inline size_t -serd_substrlen(const char* const str, - const size_t len, - SerdNodeFlags* const flags) -{ - if (flags) { - size_t i = 0; - *flags = 0; - for (; i < len && str[i]; ++i) { - serd_update_flags(str[i], flags); - } - return i; - } - return strlen(str); -} - static inline int serd_strncasecmp(const char* s1, const char* s2, size_t n) { |