issue #4660: Removes unused function in ccUTF8.cpp

This commit is contained in:
James Chen 2014-05-10 19:34:49 +08:00
parent 4692c67b78
commit 448c1ad352
1 changed files with 0 additions and 12 deletions

View File

@ -155,18 +155,6 @@ bool UTF16ToUTF8(const std::u16string& utf16, std::string& outUtf8)
return llvm::convertUTF16ToUTF8String(utf16, outUtf8);
}
std::vector<char16_t> getUTF16VectorFromUTF16String(const std::u16string& str)
{
std::vector<char16_t> str_new;
size_t len = str.length();
for (size_t i = 0; i < len; ++i)
{
str_new.push_back(str[i]);
}
return str_new;
}
std::vector<char16_t> getChar16VectorFromUTF16String(const std::u16string& utf16)
{
std::vector<char16_t> ret;