aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-16 13:54:01 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-01-16 13:54:01 +0100
commit1df947bae7346948e08edb75616d34fcf8802dae (patch)
tree4f26efa73b82c3404f8bedbe5efae732afb570b2 /src/utils.cpp
parentadcee856b3628f013d31ed890bf1a28cb4d688cd (diff)
downloadetisnoop-1df947bae7346948e08edb75616d34fcf8802dae.tar.gz
etisnoop-1df947bae7346948e08edb75616d34fcf8802dae.tar.bz2
etisnoop-1df947bae7346948e08edb75616d34fcf8802dae.zip
Add FIG2 label decoding with draft TS 103 176 v2.2.1 support
Diffstat (limited to 'src/utils.cpp')
-rw-r--r--src/utils.cpp12
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();
-}
-