e2sm_kpm: remove uneeded func

master
Piotr Gawlowicz 2 years ago committed by Justin Tallon
parent 8ed3497bc8
commit 6c8458bfb2

@ -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,

@ -725,17 +725,3 @@ 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;
}
Loading…
Cancel
Save