diff options
author | Elliott Hughes <enh@google.com> | 2019-01-25 17:01:27 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-01-25 17:01:27 +0000 |
commit | cdd0aaa3ae293039e9448a6bb13dc4d22c8fe2ba (patch) | |
tree | 304a2c65cafbbcfc653d98441f935eeb310a2341 /libutils/Unicode.cpp | |
parent | 1420c1371f39ef686eb3ed4b87343dd0aac32781 (diff) | |
parent | d2962c8a151115111f375145ddda2bd7ddb4043d (diff) |
Merge "Remove dead code."
Diffstat (limited to 'libutils/Unicode.cpp')
-rw-r--r-- | libutils/Unicode.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libutils/Unicode.cpp b/libutils/Unicode.cpp index 5f0a51f1c5..24a745ac54 100644 --- a/libutils/Unicode.cpp +++ b/libutils/Unicode.cpp @@ -275,25 +275,6 @@ size_t strlen16(const char16_t *s) return ss-s; } - -char16_t *strncpy16(char16_t *dst, const char16_t *src, size_t n) -{ - char16_t *q = dst; - const char16_t *p = src; - char ch; - - while (n) { - n--; - *q++ = ch = *p++; - if ( !ch ) - break; - } - - *q = 0; - - return dst; -} - size_t strnlen16(const char16_t *s, size_t maxlen) { const char16_t *ss = s; |