Skip to content

Commit

Permalink
Removed unused duplicate function rz_search_update_i
Browse files Browse the repository at this point in the history
  • Loading branch information
DMaroo committed Mar 12, 2022
1 parent 70c441c commit 7b7744a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions librz/include/rz_search.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,10 @@ RZ_API RzSearch *rz_search_new(RZ_OWN RZ_NONNULL RzSearchParams *params);
RZ_API int rz_search_params_set_mode(RzSearchParams *params, RzSearchMode mode);
RZ_API RzSearch *rz_search_free(RzSearch *s);

/* keyword management */
RZ_API RzList /*<RzSearchHit>*/ *rz_search_find(RzSearch *s, ut64 addr, const ut8 *buf, int len);
RZ_API int rz_search_update(RzSearch *s, ut64 from, const ut8 *buf, long len);
RZ_API int rz_search_update_i(RzSearch *s, ut64 from, const ut8 *buf, long len);

/* keyword management */
RZ_API void rz_search_keyword_free(RzSearchKeyword *kw);
RZ_API RzSearchKeyword *rz_search_keyword_new(const ut8 *kw, int kwlen, const ut8 *bm, int bmlen, const char *data);
RZ_API RzSearchKeyword *rz_search_keyword_new_str(const char *kw, const char *bm, const char *data, int icase);
Expand Down
4 changes: 0 additions & 4 deletions librz/search/search.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,6 @@ RZ_API int rz_search_update(RzSearch *s, ut64 from, const ut8 *buf, long len) {
return ret;
}

RZ_API int rz_search_update_i(RzSearch *s, ut64 from, const ut8 *buf, long len) {
return rz_search_update(s, from, buf, len);
}

static int listcb(RzSearchKeyword *k, void *user, ut64 addr) {
RzSearchHit *hit = RZ_NEW0(RzSearchHit);
if (!hit) {
Expand Down

0 comments on commit 7b7744a

Please sign in to comment.