util/print: emove cb_eprintf() (#4235)

This commit is contained in:
Anton Kochkov 2024-02-15 18:12:09 +08:00 committed by GitHub
parent 7558233da1
commit 60e93b28ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 13 deletions

View file

@ -2350,9 +2350,6 @@ RZ_API bool rz_core_init(RzCore *core) {
core->print->offname = rz_core_print_offname;
core->print->offsize = rz_core_print_offsize;
core->print->cb_printf = rz_cons_printf;
#if __WINDOWS__
core->print->cb_eprintf = win_eprintf;
#endif
core->print->cb_color = rz_cons_rainbow_get;
core->print->write = mywrite;
core->print->exists_var = exists_var;

View file

@ -115,7 +115,6 @@ typedef struct rz_print_t {
int datezone;
int (*write)(const unsigned char *buf, int len);
PrintfCallback cb_printf;
PrintfCallback cb_eprintf;
char *(*cb_color)(int idx, int last, bool bg);
bool scr_prompt;
int (*disasm)(void *p, ut64 addr);

View file

@ -32,14 +32,6 @@ static int libc_printf(const char *format, ...) {
return 0;
}
static int libc_eprintf(const char *format, ...) {
va_list ap;
va_start(ap, format);
vfprintf(stderr, format, ap);
va_end(ap);
return 0;
}
static RzPrintIsInterruptedCallback is_interrupted_cb = NULL;
RZ_API bool rz_print_is_interrupted(void) {
@ -63,7 +55,6 @@ RZ_API RzPrint *rz_print_new(void) {
p->pairs = true;
p->resetbg = true;
p->cb_printf = libc_printf;
p->cb_eprintf = libc_eprintf;
p->oprintf = nullprinter;
p->bits = 32;
p->stride = 0;