Skip to content

Commit

Permalink
Remove unused sdb ptr API (#4492)
Browse files Browse the repository at this point in the history
  • Loading branch information
pelijah committed May 15, 2024
1 parent e922185 commit fdc3369
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
5 changes: 0 additions & 5 deletions librz/arch/esil/esil.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,6 @@ static bool rz_analysis_esil_fire_trap(RzAnalysisEsil *esil, int trap_type, int
}
}
}
#if 0
RzAnalysisEsilTrapCB icb;
icb = (RzAnalysisEsilTrapCB)sdb_ptr_get (esil->traps, i, 0);
return icb (esil, trap_type, trap_code);
#endif
return false;
}

Expand Down
10 changes: 0 additions & 10 deletions librz/util/sdb/src/num.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,3 @@ RZ_API bool sdb_bool_get(Sdb *db, const char *str) {
const char *b = sdb_const_get(db, str);
return b && (!strcmp(b, "1") || !strcmp(b, "true"));
}

/* pointers */

RZ_API int sdb_ptr_set(Sdb *db, const char *key, void *p) {
return sdb_num_set(db, key, (ut64)(size_t)p);
}

RZ_API void *sdb_ptr_get(Sdb *db, const char *key) {
return (void *)(size_t)sdb_num_get(db, key);
}
4 changes: 0 additions & 4 deletions librz/util/sdb/src/sdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,6 @@ RZ_API ut64 sdb_num_dec(Sdb *s, const char *key, ut64 n);
RZ_API int sdb_num_min(Sdb *s, const char *key, ut64 v);
RZ_API int sdb_num_max(Sdb *s, const char *key, ut64 v);

/* ptr */
RZ_API int sdb_ptr_set(Sdb *db, const char *key, void *p);
RZ_API void *sdb_ptr_get(Sdb *db, const char *key);

/* create db */
RZ_API bool sdb_disk_create(Sdb *s);
RZ_API bool sdb_disk_insert(Sdb *s, const char *key, const char *val);
Expand Down

0 comments on commit fdc3369

Please sign in to comment.