diff options
Diffstat (limited to 'src/utils.cpp')
-rw-r--r-- | src/utils.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/utils.cpp b/src/utils.cpp index 2d5af6a..f69b013 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -305,15 +305,3 @@ int absolute_to_dB(int16_t value) return value ? round(20*log10((double)value / int16_max)) : -90; } -std::string flag_to_shortlabel(const std::string& label, uint16_t flag) -{ - stringstream shortlabel; - for (size_t i = 0; i < label.size(); ++i) { - if (flag & 0x8000 >> i) { - shortlabel << label[i]; - } - } - - return shortlabel.str(); -} - |