From: Joel Holdsworth Date: Sun, 24 Aug 2014 20:58:54 +0000 (+0100) Subject: DecodeTrace: Removed set_view X-Git-Tag: pulseview-0.3.0~484 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a77dac4e7ab85ac97f7ff63862d28948ae4dec61;p=pulseview.git DecodeTrace: Removed set_view --- diff --git a/pv/view/decodetrace.cpp b/pv/view/decodetrace.cpp index cb455c5a..27732971 100644 --- a/pv/view/decodetrace.cpp +++ b/pv/view/decodetrace.cpp @@ -150,12 +150,6 @@ const std::shared_ptr& DecodeTrace::decoder() const return _decoder_stack; } -void DecodeTrace::set_view(pv::view::View *view) -{ - assert(view); - Trace::set_view(view); -} - void DecodeTrace::paint_back(QPainter &p, int left, int right) { Trace::paint_back(p, left, right); diff --git a/pv/view/decodetrace.h b/pv/view/decodetrace.h index 52e41fc0..ab495fa0 100644 --- a/pv/view/decodetrace.h +++ b/pv/view/decodetrace.h @@ -90,8 +90,6 @@ public: const std::shared_ptr& decoder() const; - void set_view(pv::view::View *view); - /** * Paints the background layer of the trace with a QPainter * @param p the QPainter to paint into. diff --git a/pv/view/trace.h b/pv/view/trace.h index 0202a4e5..c6c92e2d 100644 --- a/pv/view/trace.h +++ b/pv/view/trace.h @@ -85,7 +85,7 @@ public: */ virtual bool enabled() const = 0; - virtual void set_view(pv::view::View *view); + void set_view(pv::view::View *view); /** * Paints the background layer of the trace with a QPainter