]> sigrok.org Git - pulseview.git/blobdiff - pv/device/device.cpp
Don't use obsolete channel-based triggers.
[pulseview.git] / pv / device / device.cpp
index 4a30e5fcd75c3bb12df003096888c6c16dd116aa..c6fc5bbe2fa037d0e221cabe3449302d0ccf38b9 100644 (file)
@@ -89,17 +89,5 @@ std::string Device::format_device_title() const
        return s.str();
 }
 
-bool Device::is_trigger_enabled() const
-{
-       assert(_sdi);
-       for (const GSList *l = _sdi->channels; l; l = l->next) {
-               const sr_channel *const p = (const sr_channel *)l->data;
-               assert(p);
-               if (p->trigger && p->trigger[0] != '\0')
-                       return true;
-       }
-       return false;
-}
-
 } // device
 } // pv