From 6c8458bfb2e710c9754ad2a994453fd3d2ad0a6e Mon Sep 17 00:00:00 2001 From: Piotr Gawlowicz Date: Thu, 30 Mar 2023 17:39:25 +0200 Subject: [PATCH] e2sm_kpm: remove uneeded func --- srsgnb/hdr/stack/ric/e2sm_kpm_common.h | 2 -- srsgnb/src/stack/ric/e2sm_kpm.cc | 14 -------------- 2 files changed, 16 deletions(-) diff --git a/srsgnb/hdr/stack/ric/e2sm_kpm_common.h b/srsgnb/hdr/stack/ric/e2sm_kpm_common.h index b048f0510..cb2b90499 100644 --- a/srsgnb/hdr/stack/ric/e2sm_kpm_common.h +++ b/srsgnb/hdr/stack/ric/e2sm_kpm_common.h @@ -57,8 +57,6 @@ enum e2sm_kpm_label_enum { UNKNOWN_LABEL = 0x8000 }; -e2sm_kpm_label_enum str2kpm_label(const std::string& label_str); - /* Scopes supported for a metric */ enum e2sm_kpm_metric_scope_enum { ENB_LEVEL = 0x0001, diff --git a/srsgnb/src/stack/ric/e2sm_kpm.cc b/srsgnb/src/stack/ric/e2sm_kpm.cc index 7a2f8c35b..42087bfca 100644 --- a/srsgnb/src/stack/ric/e2sm_kpm.cc +++ b/srsgnb/src/stack/ric/e2sm_kpm.cc @@ -724,18 +724,4 @@ bool e2sm_kpm::_extract_last_real_type_meas_value(E2SM_KPM_meas_value_t& meas_va } return false; -} - -e2sm_kpm_label_enum str2kpm_label(const std::string& label_str) -{ - std::string label_str_uc{label_str}; - std::transform(label_str_uc.cbegin(), label_str_uc.cend(), label_str_uc.begin(), [](unsigned char c) { - return std::toupper(c); - }); - - if(label_str_uc == "NO_LABEL") return NO_LABEL; - else if(label_str_uc == "MIN_LABEL") return MIN_LABEL; - else if(label_str_uc == "MAX_LABEL") return MAX_LABEL; - else if(label_str_uc == "AVG_LABEL") return AVG_LABEL; - return UNKNOWN_LABEL; } \ No newline at end of file