[lldb] [Windows] Remove unused functions. NFC.

These became unused in 51117e3c51.
This commit is contained in:
Martin Storsjö 2020-10-10 14:33:10 +03:00
parent abaca237c5
commit 5d330f435e
1 changed files with 0 additions and 20 deletions

View File

@ -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;