From 21dfeff8aaeb423e55695ba7712e5eb8b44300dc Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Tue, 20 Jul 2021 16:17:36 +0200 Subject: [PATCH] remove struct member wildcarded_req from struct mgcp_endpoint The struct member bool wildcarded_req is no longer needed Change-Id: Iabd2df8f0f8fcce964af647e3a6d8e4c3006ab29 Related: SYS#5535 --- include/osmocom/mgcp/mgcp_endp.h | 4 ---- src/libosmo-mgcp/mgcp_endp.c | 3 --- 2 files changed, 7 deletions(-) diff --git a/include/osmocom/mgcp/mgcp_endp.h b/include/osmocom/mgcp/mgcp_endp.h index db1a8976b..b6bd7b30b 100644 --- a/include/osmocom/mgcp/mgcp_endp.h +++ b/include/osmocom/mgcp/mgcp_endp.h @@ -111,10 +111,6 @@ struct mgcp_endpoint { /*! Last MGCP response (in case re-transmission is required) */ char *last_response; - /*! Memorize if this endpoint was choosen by the MGW (wildcarded, true) - * or if the user has choosen the particular endpoint explicitly. */ - bool wildcarded_req; - /*! MGCP_X_OSMO_IGN_* flags from 'X-Osmo-IGN:' header */ uint32_t x_osmo_ign; diff --git a/src/libosmo-mgcp/mgcp_endp.c b/src/libosmo-mgcp/mgcp_endp.c index ae376b099..41e0d4fbe 100644 --- a/src/libosmo-mgcp/mgcp_endp.c +++ b/src/libosmo-mgcp/mgcp_endp.c @@ -129,7 +129,6 @@ void mgcp_endp_release(struct mgcp_endpoint *endp) endp->local_options.string = NULL; talloc_free(endp->local_options.codec); endp->local_options.codec = NULL; - endp->wildcarded_req = false; if (endp->trunk->trunk_type == MGCP_TRUNK_E1) mgcp_e1_endp_release(endp); @@ -271,7 +270,6 @@ struct mgcp_endpoint *mgcp_endp_by_name_trunk(int *cause, const char *epname, LOGPENDP(endp, DLMGCP, LOGL_DEBUG, "(trunk:%d) found free endpoint: %s\n", trunk->trunk_nr, endp->name); - endp->wildcarded_req = true; return endp; } @@ -290,7 +288,6 @@ struct mgcp_endpoint *mgcp_endp_by_name_trunk(int *cause, const char *epname, LOGPENDP(endp, DLMGCP, LOGL_DEBUG, "(trunk:%d) found endpoint: %s\n", trunk->trunk_nr, endp->name); - endp->wildcarded_req = false; return endp; }