Skip to content

Commit

Permalink
qrouting/drouting: Remove unused (deprecated?) callback
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Feb 5, 2020
1 parent 007218a commit 1239cb4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion modules/drouting/dr_cb.h
Expand Up @@ -33,7 +33,6 @@ enum drcb_types {
DRCB_REG_CR,
DRCB_REG_ADD_RULE,
DRCB_REG_MARK_AS_RULE_LIST,
DRCB_REG_LINK_LISTS,
DRCB_REG_FREE_LIST,
DRCB_ACC_CALL,
DRCB_SORT_DST,
Expand Down
11 changes: 0 additions & 11 deletions modules/qrouting/qr_stats.c
Expand Up @@ -400,14 +400,3 @@ void qr_mark_as_main_list(void *param)
*qr_main_list = qr_parts_new; /* the new list that the QR will work with */
lock_stop_write(*rw_lock_qr);
}

/* copy link two rule lists together => used for dr_reload and partitions
* (every partition will create a separate list) */
void qr_link_rule_list(void *param)
{
struct dr_link_rule_list_params *rl =
(struct dr_link_rule_list_params *)param;
qr_rule_t **first_list = *rl->first_list, *second_list = rl->second_list;

add_last(second_list, *first_list);
}
5 changes: 0 additions & 5 deletions modules/qrouting/qrouting.c
Expand Up @@ -260,11 +260,6 @@ static int qr_init_dr_cb(void)
return -1;
}

if (drb.register_drcb(DRCB_REG_LINK_LISTS, &qr_link_rule_list, NULL, NULL) < 0) {
LM_ERR("[QR] failed to register DRCB_LINK_QR_LISTS callback to DR\n");
return -1;
}

if (drb.register_drcb(DRCB_REG_FREE_LIST, &free_qr_cb, NULL, NULL) < 0) {
LM_ERR("[QR] failed to register DRCB_REG_FREE_LIST callback to DR\n");
return -1;
Expand Down

0 comments on commit 1239cb4

Please sign in to comment.