Skip to content

Commit

Permalink
util/print: emove cb_eprintf() (#4235)
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka authored Feb 15, 2024
1 parent 7558233 commit 60e93b2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions librz/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion librz/include/rz_util/rz_print.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
9 changes: 0 additions & 9 deletions librz/util/print.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down

0 comments on commit 60e93b2

Please sign in to comment.