Revert "mgcp_ratectr: add stats items to monitor trunk usage"
This reverts commit 6bad138c96ef0e2a93ef7de42e897880131c0b43.
Reason for revert: heap-use-after-free during 'make check'
in mgcp_test.c test_retransmission()
Change-Id: I96792a719c9c7273676ab9ffe0b9e2aae4c23166
Related: OS#5201
diff --git a/include/osmocom/mgcp/mgcp_ratectr.h b/include/osmocom/mgcp/mgcp_ratectr.h
index 0bd6f88..78c687b 100644
--- a/include/osmocom/mgcp/mgcp_ratectr.h
+++ b/include/osmocom/mgcp/mgcp_ratectr.h
@@ -95,17 +95,3 @@
int mgcp_ratectr_global_alloc(struct mgcp_config *cfg);
int mgcp_ratectr_trunk_alloc(struct mgcp_trunk *trunk);
-
-/* Trunk-global common stat items */
-enum {
- TRUNK_STAT_ENDPOINTS_TOTAL,
- TRUNK_STAT_ENDPOINTS_USED,
-};
-
-struct mgcp_stat_trunk {
- /* Stat item group which contains general status values of the trunk. */
- struct osmo_stat_item_group *common;
-};
-
-int mgcp_stat_trunk_alloc(struct mgcp_trunk *trunk);
-
diff --git a/include/osmocom/mgcp/mgcp_trunk.h b/include/osmocom/mgcp/mgcp_trunk.h
index d960428..048ac5b 100644
--- a/include/osmocom/mgcp/mgcp_trunk.h
+++ b/include/osmocom/mgcp/mgcp_trunk.h
@@ -52,9 +52,8 @@
unsigned int number_endpoints;
struct mgcp_endpoint **endpoints;
- /* rate counters and stat items to measure the trunks overall performance and health */
+ /* global rate counters to measure the trunks overall performance and health */
struct mgcp_ratectr_trunk ratectr;
- struct mgcp_stat_trunk stats;
union {
/* Virtual trunk specific */