]> sigrok.org Git - pulseview.git/blobdiff - pv/device/device.cpp
CMakeLists.txt: Put quotes back for CXX_FLAGS only
[pulseview.git] / pv / device / device.cpp
index 4f9a7799539b5e125b01e0a1591ac8c165da7414..c6fc5bbe2fa037d0e221cabe3449302d0ccf38b9 100644 (file)
@@ -18,6 +18,7 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#include <cassert>
 #include <sstream>
 
 #include <libsigrok/libsigrok.h>
@@ -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->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