X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevice%2Fdevinst.cpp;h=5fe2951756e4b602fca4da0fa4b379f3cfc19ef0;hp=a5f96808e55d14161050b5d3e966ca0e847b3c62;hb=921b90c0b3ae0cf44247da3d87bd7dc0612e9681;hpb=945745012eb57cefa1ef457daf48cfffa99f9ec2 diff --git a/pv/device/devinst.cpp b/pv/device/devinst.cpp index a5f9680..5fe2951 100644 --- a/pv/device/devinst.cpp +++ b/pv/device/devinst.cpp @@ -19,7 +19,6 @@ */ #include -#include #include @@ -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;