[Lldb-commits] [lldb] 5d330f4 - [lldb] [Windows] Remove unused functions. NFC.
Martin Storsjö via lldb-commits
lldb-commits at lists.llvm.org
Sat Oct 10 10:48:02 PDT 2020
Author: Martin Storsjö
Date: 2020-10-10T20:47:40+03:00
New Revision: 5d330f435e12d4a7f97cde406d29ce7413f96b47
URL: https://github.com/llvm/llvm-project/commit/5d330f435e12d4a7f97cde406d29ce7413f96b47
DIFF: https://github.com/llvm/llvm-project/commit/5d330f435e12d4a7f97cde406d29ce7413f96b47.diff
LOG: [lldb] [Windows] Remove unused functions. NFC.
These became unused in 51117e3c51754f3732e.
Added:
Modified:
lldb/source/Host/windows/Windows.cpp
Removed:
################################################################################
diff --git a/lldb/source/Host/windows/Windows.cpp b/lldb/source/Host/windows/Windows.cpp
index 172ea29107d3..4e6437f1c9ec 100644
--- a/lldb/source/Host/windows/Windows.cpp
+++ b/lldb/source/Host/windows/Windows.cpp
@@ -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;
More information about the lldb-commits
mailing list