From 2cc4801974f9135c3e19b41e3d22a67c4228a4f2 Mon Sep 17 00:00:00 2001 From: Ben Payne Date: Tue, 20 Jan 2015 17:56:11 -0500 Subject: [PATCH] Remove a dead function --- Engine/source/core/strings/unicode.cpp | 15 --------------- Engine/source/core/strings/unicode.h | 4 ---- 2 files changed, 19 deletions(-) diff --git a/Engine/source/core/strings/unicode.cpp b/Engine/source/core/strings/unicode.cpp index d43959485..3db038aa3 100644 --- a/Engine/source/core/strings/unicode.cpp +++ b/Engine/source/core/strings/unicode.cpp @@ -508,21 +508,6 @@ U32 dStrlen(const UTF32 *unistring) return i; } -//----------------------------------------------------------------------------- -U32 dStrncmp(const UTF16* unistring1, const UTF16* unistring2, U32 len) -{ - UTF16 c1, c2; - for(U32 i = 0; i c2) return 1; - if(!c1) return 0; - } - return 0; -} - //----------------------------------------------------------------------------- const UTF16* dStrrchr(const UTF16* unistring, U32 c) diff --git a/Engine/source/core/strings/unicode.h b/Engine/source/core/strings/unicode.h index b5d332b40..a1293b8ee 100644 --- a/Engine/source/core/strings/unicode.h +++ b/Engine/source/core/strings/unicode.h @@ -117,10 +117,6 @@ U32 oneUTF32toUTF8( const UTF32 codepoint, UTF8 *threeByteCodeunitBuf); U32 dStrlen(const UTF16 *unistring); U32 dStrlen(const UTF32 *unistring); -//----------------------------------------------------------------------------- -/// Comparing unicode strings -U32 dStrncmp(const UTF16* unistring1, const UTF16* unistring2, U32 len); - //----------------------------------------------------------------------------- /// Scanning for characters in unicode strings UTF16* dStrrchr(UTF16* unistring, U32 c);