X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fdevice%2Fdevice.cpp;h=c6fc5bbe2fa037d0e221cabe3449302d0ccf38b9;hb=b1e8c93d824986328a34d1c36273cb534fd65307;hp=e70be02592f0c58e3c2b59340068b39478f94842;hpb=ae2d1bc5b5aba9fcdd7fef42ef1bc9069267d6f7;p=pulseview.git diff --git a/pv/device/device.cpp b/pv/device/device.cpp index e70be02..c6fc5bb 100644 --- a/pv/device/device.cpp +++ b/pv/device/device.cpp @@ -18,6 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include @@ -88,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->probes; l; l = l->next) { - const sr_probe *const p = (const sr_probe *)l->data; - assert(p); - if (p->trigger && p->trigger[0] != '\0') - return true; - } - return false; -} - } // device } // pv