summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/fxcrt/cfx_bytestring.cpp6
-rw-r--r--core/fxcrt/cfx_bytestring.h1
2 files changed, 0 insertions, 7 deletions
diff --git a/core/fxcrt/cfx_bytestring.cpp b/core/fxcrt/cfx_bytestring.cpp
index 77e0ecd610..f6634fc51d 100644
--- a/core/fxcrt/cfx_bytestring.cpp
+++ b/core/fxcrt/cfx_bytestring.cpp
@@ -710,12 +710,6 @@ CFX_WideString CFX_ByteString::UTF8Decode() const {
}
// static
-CFX_ByteString CFX_ByteString::FromUnicode(const wchar_t* str, FX_STRSIZE len) {
- FX_STRSIZE str_len = len >= 0 ? len : FXSYS_wcslen(str);
- return FromUnicode(CFX_WideString(str, str_len));
-}
-
-// static
CFX_ByteString CFX_ByteString::FromUnicode(const CFX_WideString& str) {
return GetByteString(0, str.AsStringC());
}
diff --git a/core/fxcrt/cfx_bytestring.h b/core/fxcrt/cfx_bytestring.h
index 902d28f300..3f96c2f2f6 100644
--- a/core/fxcrt/cfx_bytestring.h
+++ b/core/fxcrt/cfx_bytestring.h
@@ -52,7 +52,6 @@ class CFX_ByteString {
void clear() { m_pData.Reset(); }
- static CFX_ByteString FromUnicode(const wchar_t* ptr, FX_STRSIZE len = -1);
static CFX_ByteString FromUnicode(const CFX_WideString& str);
// Explicit conversion to C-style string.