]> sigrok.org Git - pulseview.git/blobdiff - pv/device/devinst.cpp
Added pv::device::Device
[pulseview.git] / pv / device / devinst.cpp
index a5f96808e55d14161050b5d3e966ca0e847b3c62..5fe2951756e4b602fca4da0fa4b379f3cfc19ef0 100644 (file)
@@ -19,7 +19,6 @@
  */
 
 #include <cassert>
-#include <sstream>
 
 #include <QDebug>
 
@@ -27,9 +26,6 @@
 
 #include "devinst.h"
 
-using std::ostringstream;
-using std::string;
-
 namespace pv {
 namespace device {
 
@@ -44,31 +40,6 @@ sr_dev_inst* DevInst::dev_inst() const
        return _sdi;
 }
 
-string DevInst::format_device_title() const
-{
-       ostringstream s;
-
-       assert(_sdi);
-
-       if (_sdi->vendor && _sdi->vendor[0]) {
-               s << _sdi->vendor;
-               if ((_sdi->model && _sdi->model[0]) ||
-                       (_sdi->version && _sdi->version[0]))
-                       s << ' ';
-       }
-
-       if (_sdi->model && _sdi->model[0]) {
-               s << _sdi->model;
-               if (_sdi->version && _sdi->version[0])
-                       s << ' ';
-       }
-
-       if (_sdi->version && _sdi->version[0])
-               s << _sdi->version;
-
-       return s.str();
-}
-
 GVariant* DevInst::get_config(const sr_probe_group *group, int key)
 {
        GVariant *data = NULL;