Remove three unused functions (#11633)

This commit is contained in:
Neven Sajko 2018-09-27 23:14:38 +02:00 committed by radare
parent 79871d4164
commit 211566922b
2 changed files with 4 additions and 33 deletions

View File

@ -1322,27 +1322,6 @@ static int cmd_pipein(void *user, const char *input) {
return 0;
}
static void task_test(RCore *core, int usecs) {
int i;
RCoreTask *task = r_core_task_self (core);
r_cons_break_push (NULL, NULL);
for (i = 0; i < 10; i++) {
if (r_cons_is_breaked()) {
r_cons_printf ("task %d was breaked!\n", task->id);
break;
}
r_cons_printf ("task %d doing work %d/%d\n", task->id, i, 10);
eprintf ("task %d doing work %d/%d\n", task->id, i, 10);
if (usecs > 0) {
void *bed = r_cons_sleep_begin ();
r_sys_usleep (usecs);
r_cons_sleep_end (bed);
}
}
r_cons_break_pop ();
r_cons_printf ("task %d is done!\n", task->id);
}
static int cmd_thread(void *data, const char *input) {
RCore *core = (RCore*) data;
switch (input[0]) {
@ -1350,17 +1329,6 @@ static int cmd_thread(void *data, const char *input) {
case 'j': // "&j"
r_core_task_list (core, *input);
break;
#if 0
// Test command
case 't': { // "&t"
int usecs = 0;
if (input[1] == ' ') {
usecs = (int) r_num_math (core->num, input + 1);
}
task_test (core, usecs);
break;
}
#endif
case 'b': { // "&b"
if (r_sandbox_enable (0)) {
eprintf ("This command is disabled in sandbox mode\n");

View File

@ -306,7 +306,6 @@ static void ds_print_opstr(RDisasmState *ds);
static void ds_print_color_reset(RDisasmState *ds);
static int ds_print_middle(RDisasmState *ds, int ret);
static bool ds_print_labels(RDisasmState *ds, RAnalFunction *f);
static void ds_print_import_name(RDisasmState *ds);
static void ds_print_sysregs(RDisasmState *ds);
static void ds_print_fcn_name(RDisasmState *ds);
static void ds_print_as_string(RDisasmState *ds);
@ -798,6 +797,7 @@ static void ds_reflines_init(RDisasmState *ds) {
}
}
#if 0
static void ds_reflines_fcn_init(RDisasmState *ds, RAnalFunction *fcn, const ut8* buf) {
RCore *core = ds->core;
RAnal *anal = core->anal;
@ -813,6 +813,7 @@ static void ds_reflines_fcn_init(RDisasmState *ds, RAnalFunction *fcn, const ut
anal->reflines = anal->reflines2 = NULL;
}
}
#endif
static void ds_free(RDisasmState *ds) {
if (!ds) {
@ -3039,6 +3040,7 @@ static bool ds_print_labels(RDisasmState *ds, RAnalFunction *f) {
return true;
}
#if 0
static void ds_print_import_name(RDisasmState *ds) {
RListIter *iter = NULL;
RBinReloc *rel = NULL;
@ -3064,6 +3066,7 @@ static void ds_print_import_name(RDisasmState *ds) {
}
}
}
#endif
static void ds_print_sysregs(RDisasmState *ds) {
RCore *core = ds->core;