Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2020-03-04 07:24:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-04 07:24:06 +0300
commitfb330dd11098b9df379d84fe181ce7966d89674c (patch)
tree0bc05acf9ed0481d886898632274af64628704a1 /source/blender/blenlib/intern/string_utf8.c
parent8931c4b18d5e15366c755346f0c982698f661e6f (diff)
Cleanup: remove unused BLI_strncat_utf8
Behaves differently to strncat, BLI_strncpy_utf8_rlen can be used for a similar purpose.
Diffstat (limited to 'source/blender/blenlib/intern/string_utf8.c')
-rw-r--r--source/blender/blenlib/intern/string_utf8.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/source/blender/blenlib/intern/string_utf8.c b/source/blender/blenlib/intern/string_utf8.c
index 027afba1f5e..bf08ad6975b 100644
--- a/source/blender/blenlib/intern/string_utf8.c
+++ b/source/blender/blenlib/intern/string_utf8.c
@@ -288,22 +288,6 @@ size_t BLI_strncpy_utf8_rlen(char *__restrict dst, const char *__restrict src, s
return (size_t)(dst - r_dst);
}
-char *BLI_strncat_utf8(char *__restrict dst, const char *__restrict src, size_t maxncpy)
-{
- while (*dst && maxncpy > 0) {
- dst++;
- maxncpy--;
- }
-
-#ifdef DEBUG_STRSIZE
- memset(dst, 0xff, sizeof(*dst) * maxncpy);
-#endif
-
- BLI_STR_UTF8_CPY(dst, src, maxncpy);
-
- return dst;
-}
-
#undef BLI_STR_UTF8_CPY
/* --------------------------------------------------------------------------*/