Remove unused callback.c (#261)
* Remove unused callback.c * Remove missing entry from indent-whitelist.sh * Remove callback.o Co-authored-by: Maijin <maijin21@gmail.com> Co-authored-by: Giovanni <561184+wargio@users.noreply.github.com>
This commit is contained in:
parent
8bd2142768
commit
2886a6f835
4 changed files with 1 additions and 60 deletions
|
|
@ -2,6 +2,6 @@ include ../config.mk
|
|||
|
||||
NAME=rz_config
|
||||
RZ_DEPS=rz_util
|
||||
OBJS=config.o callback.o hold.o serialize_config.o
|
||||
OBJS=config.o hold.o serialize_config.o
|
||||
|
||||
include ../rules.mk
|
||||
|
|
|
|||
|
|
@ -1,56 +0,0 @@
|
|||
// SPDX-License-Identifier: LGPL-3.0-only
|
||||
|
||||
#include "rz_config.h"
|
||||
|
||||
static bool rz_config_setter_q(void *data) {
|
||||
RzConfigNode *node = data;
|
||||
*(node->cb_ptr_q) = node->i_value;
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool rz_config_setter_i(void *data) {
|
||||
RzConfigNode *node = data;
|
||||
*(node->cb_ptr_i) = node->i_value;
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool rz_config_setter_s(void *data) {
|
||||
RzConfigNode *node = data;
|
||||
if (!node->value || !*node->value) {
|
||||
free (*node->cb_ptr_s);
|
||||
*node->cb_ptr_s = NULL;
|
||||
} else {
|
||||
*node->cb_ptr_s = rz_str_dup (*node->cb_ptr_s, node->value);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
RZ_API bool rz_config_set_setter_q(RzConfig *cfg, const char *name, ut64 *ptr) {
|
||||
RzConfigNode *node = rz_config_node_get (cfg, name);
|
||||
if (node) {
|
||||
node->cb_ptr_q = ptr;
|
||||
node->setter = (void *) &rz_config_setter_q;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
RZ_API bool rz_config_set_setter_i(RzConfig *cfg, const char *name, int *ptr) {
|
||||
RzConfigNode *node = rz_config_node_get (cfg, name);
|
||||
if (node) {
|
||||
node->cb_ptr_i = ptr;
|
||||
node->setter = (void *) &rz_config_setter_i;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
RZ_API bool rz_config_set_setter_s(RzConfig *cfg, const char *name, char * *ptr) {
|
||||
RzConfigNode *node = rz_config_node_get (cfg, name);
|
||||
if (node) {
|
||||
node->cb_ptr_s = ptr;
|
||||
node->setter = (void *) &rz_config_setter_s;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
rz_config_sources = [
|
||||
'callback.c',
|
||||
'config.c',
|
||||
'hold.c',
|
||||
'serialize_config.c'
|
||||
|
|
|
|||
|
|
@ -41,8 +41,6 @@ librz/analysis/flirt.c
|
|||
librz/analysis/p/analysis_arc.c
|
||||
|
||||
librz/config/config.c
|
||||
librz/config/callback.c
|
||||
librz/config/t/test.c
|
||||
|
||||
librz/fs/fs.c
|
||||
librz/fs/file.c
|
||||
|
|
|
|||
Loading…
Reference in a new issue