]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decode/annotation.cpp
Add missing #include <cassert> in multiple files
[pulseview.git] / pv / data / decode / annotation.cpp
index 4a6890b5a4e519a5aac786d408d97953985a4836..f403b6e9dfb3d532a978dc48f8be146647d4dd82 100644 (file)
@@ -22,6 +22,7 @@ extern "C" {
 #include <libsigrokdecode/libsigrokdecode.h>
 }
 
+#include <cassert>
 #include <vector>
 
 #include "annotation.h"
@@ -40,7 +41,6 @@ Annotation::Annotation(const srd_proto_data *const pdata) :
        assert(pda);
 
        _format = pda->ann_format;
-       _row = 0;
 
        const char *const *annotations = (char**)pda->ann_text;
        while(*annotations) {
@@ -64,31 +64,11 @@ int Annotation::format() const
        return _format;
 }
 
-int Annotation::row() const
-{
-       return _row;
-}
-
-int Annotation::pd_index() const
-{
-       return _pd_index;
-}
-
 const std::vector<QString>& Annotation::annotations() const
 {
        return _annotations;
 }
 
-void Annotation::set_row(int row)
-{
-       _row = row;
-}
-
-void Annotation::set_pd_index(int pd_index)
-{
-       _pd_index = pd_index;
-}
-
 } // namespace decode
 } // namespace data
 } // namespace pv