summaryrefslogtreecommitdiffstats
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-01-24 13:07:18 -0800
committerElliott Hughes <enh@google.com>2019-01-24 13:07:18 -0800
commitd2962c8a151115111f375145ddda2bd7ddb4043d (patch)
treed10850b2f08efe4305a09a527dd45c0f2d887689 /libutils/Unicode.cpp
parenta5e0d695fa9ac8624681fb9effc51bbe6f75853e (diff)
downloadsystem_core-d2962c8a151115111f375145ddda2bd7ddb4043d.tar.gz
system_core-d2962c8a151115111f375145ddda2bd7ddb4043d.tar.bz2
system_core-d2962c8a151115111f375145ddda2bd7ddb4043d.zip
Remove dead code.
If this was strlcpy16 it wouldn't be such a bad idea, but strncpy16 is just an accident waiting to happen... Test: N/A Change-Id: Id296fdeadfb9f1f70ddc8fb6d31b3b6b5178a12c
Diffstat (limited to 'libutils/Unicode.cpp')
-rw-r--r--libutils/Unicode.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/libutils/Unicode.cpp b/libutils/Unicode.cpp
index 5f0a51f1c..24a745ac5 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;