NR RRC - Removed unused function for deleting drbs

parent 0dd759e1
...@@ -155,25 +155,3 @@ nr_ue_t *nr_ue_get(rnti_t rnti) { ...@@ -155,25 +155,3 @@ nr_ue_t *nr_ue_get(rnti_t rnti) {
return NULL; return NULL;
} }
void nr_ue_delete(rnti_t rnti) {
nr_ue_t *ue;
ue = ues.list;
if(ue->ue_id == rnti) {
ues.list = ues.list->next_ue;
free(ue);
} else {
nr_ue_t *uePrev = NULL;
while(ue->ue_id != rnti && ue->next_ue != NULL) {
uePrev = ue;
ue = ue->next_ue;
}
if(ue->ue_id != rnti) {
uePrev->next_ue = ue->next_ue;
free(ue);
}
}
}
\ No newline at end of file
...@@ -51,7 +51,6 @@ NR_DRB_ToAddMod_t *generateDRB(rnti_t rnti, ...@@ -51,7 +51,6 @@ NR_DRB_ToAddMod_t *generateDRB(rnti_t rnti,
nr_ue_t *nr_ue_get(rnti_t rnti); nr_ue_t *nr_ue_get(rnti_t rnti);
nr_ue_t *nr_ue_new(rnti_t rnti); nr_ue_t *nr_ue_new(rnti_t rnti);
void nr_ue_delete(rnti_t rnti);
uint8_t next_available_drb(rnti_t rnti, uint8_t pdusession_id); uint8_t next_available_drb(rnti_t rnti, uint8_t pdusession_id);
#endif #endif
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment