]> sigrok.org Git - pulseview.git/blobdiff - pv/data/signalbase.cpp
Merge DecoderStack into DecodeSignal
[pulseview.git] / pv / data / signalbase.cpp
index 8693c58b37fb462d1546f7d0f9bf4966442b4368..bbb7fdc36382c82c76b8305c866a5c221454aeef 100644 (file)
@@ -200,14 +200,7 @@ void SignalBase::set_conversion_type(ConversionType t)
 #ifdef ENABLE_DECODE
 bool SignalBase::is_decode_signal() const
 {
-       // DecodeSignal class overrides this method, all others shall return false
-       return false;
-}
-
-shared_ptr<pv::data::DecoderStack> SignalBase::decoder_stack() const
-{
-       // DecodeSignal class overrides this method, all others shall return nothing
-       return nullptr;
+       return (channel_type_ == DecodeChannel);
 }
 #endif