summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-08-17 09:59:29 -0700
committerElliott Hughes <enh@google.com>2018-08-17 09:59:29 -0700
commit7b6751d2f8b9556af20eaa7a36431986fdeff597 (patch)
tree71645a92293b9f13ac723b5e7bc76792ee2b498d /libutils/Unicode.cpp
parent5f42ee186dd78435d78d7ee757de9c2f25c5783f (diff)
libutils: remove unused strzcmp16_h_n.
Bug: N/A Test: builds Change-Id: I864bfb3597da76cd0a4fecce67e39d5d81538764
Diffstat (limited to 'libutils/Unicode.cpp')
-rw-r--r--libutils/Unicode.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/libutils/Unicode.cpp b/libutils/Unicode.cpp
index e00fb81af..82f650dce 100644
--- a/libutils/Unicode.cpp
+++ b/libutils/Unicode.cpp
@@ -340,27 +340,6 @@ int strzcmp16(const char16_t *s1, size_t n1, const char16_t *s2, size_t n2)
: 0);
}
-int strzcmp16_h_n(const char16_t *s1H, size_t n1, const char16_t *s2N, size_t n2)
-{
- const char16_t* e1 = s1H+n1;
- const char16_t* e2 = s2N+n2;
-
- while (s1H < e1 && s2N < e2) {
- const char16_t c2 = ntohs(*s2N);
- const int d = (int)*s1H++ - (int)c2;
- s2N++;
- if (d) {
- return d;
- }
- }
-
- return n1 < n2
- ? (0 - (int)ntohs(*s2N))
- : (n1 > n2
- ? ((int)*s1H - 0)
- : 0);
-}
-
void utf16_to_utf8(const char16_t* src, size_t src_len, char* dst, size_t dst_len)
{
if (src == nullptr || src_len == 0 || dst == nullptr) {