winedbg: Get rid of dbg_outputW helper.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2022-03-18 17:25:24 +01:00 committed by Alexandre Julliard
parent 9a130ccdb6
commit 0046d6eccc
3 changed files with 1 additions and 13 deletions

View File

@ -501,7 +501,6 @@ extern BOOL types_is_integral_type(const struct dbg_lvalue*);
extern BOOL types_is_float_type(const struct dbg_lvalue*);
/* winedbg.c */
extern void dbg_outputW(const WCHAR* buffer, int len);
extern const char* dbg_W2A(const WCHAR* buffer, unsigned len);
#ifdef __GNUC__
extern int WINAPIV dbg_printf(const char* format, ...) __attribute__((format (printf,1,2)));

View File

@ -641,7 +641,6 @@ void print_basic(const struct dbg_lvalue* lvalue, char format)
{
unsigned size;
dbg_lgint_t res = types_extract_as_lgint(lvalue, &size, NULL);
WCHAR wch;
switch (format)
{
@ -658,10 +657,7 @@ void print_basic(const struct dbg_lvalue* lvalue, char format)
return;
case 'u':
wch = (WCHAR)(res & 0xFFFF);
dbg_printf("%d = '", wch);
dbg_outputW(&wch, 1);
dbg_printf("'");
dbg_printf("%d = '%lc'", (WCHAR)(res & 0xFFFF), (WCHAR)(res & 0xFFFF));
return;
case 'i':

View File

@ -135,13 +135,6 @@ const char* dbg_W2A(const WCHAR* buffer, unsigned len)
return ansi;
}
void dbg_outputW(const WCHAR* buffer, int len)
{
const char* ansi = dbg_W2A(buffer, len);
if (ansi) dbg_outputA(ansi, strlen(ansi));
/* FIXME: should CP_ACP be GetConsoleCP()? */
}
int WINAPIV dbg_printf(const char* format, ...)
{
static char buf[4*1024];