forked from OSchip/llvm-project
[lldb] [Windows] Remove unused functions. NFC.
These became unused in 51117e3c51
.
This commit is contained in:
parent
abaca237c5
commit
5d330f435e
|
@ -22,26 +22,6 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
namespace {
|
||||
bool utf8ToWide(const char *utf8, wchar_t *buf, size_t bufSize) {
|
||||
const llvm::UTF8 *sourceStart = reinterpret_cast<const llvm::UTF8 *>(utf8);
|
||||
size_t sourceLen = strlen(utf8) + 1 /* convert null too */;
|
||||
llvm::UTF16 *target = reinterpret_cast<llvm::UTF16 *>(buf);
|
||||
llvm::ConversionFlags flags = llvm::strictConversion;
|
||||
return llvm::ConvertUTF8toUTF16(&sourceStart, sourceStart + sourceLen, &target,
|
||||
target + bufSize, flags) == llvm::conversionOK;
|
||||
}
|
||||
|
||||
bool wideToUtf8(const wchar_t *wide, char *buf, size_t bufSize) {
|
||||
const llvm::UTF16 *sourceStart = reinterpret_cast<const llvm::UTF16 *>(wide);
|
||||
size_t sourceLen = wcslen(wide) + 1 /* convert null too */;
|
||||
llvm::UTF8 *target = reinterpret_cast<llvm::UTF8 *>(buf);
|
||||
llvm::ConversionFlags flags = llvm::strictConversion;
|
||||
return llvm::ConvertUTF16toUTF8(&sourceStart, sourceStart + sourceLen, &target,
|
||||
target + bufSize, flags) == llvm::conversionOK;
|
||||
}
|
||||
}
|
||||
|
||||
int vasprintf(char **ret, const char *fmt, va_list ap) {
|
||||
char *buf;
|
||||
int len;
|
||||
|
|
Loading…
Reference in New Issue