Cleanup: Remove 'data' field from 'DeviceDetails'.

`device_data_t data` in DeviceDetails has never been populated since it was first
added, and consequently is not used. This is confusing, especially as certain
fields inside `device_data_t` have been added directly to `DeviceDetails` in the meantime (e.g. `firmwareVersion`).

Separated from #3568 as per
https://github.com/subsurface/subsurface/pull/3568#pullrequestreview-1274995287.

Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
Michael Keller 2023-01-31 11:14:37 +13:00 committed by bstoeger
parent 7ecc4c7034
commit ada32f999e
2 changed files with 0 additions and 2 deletions

View file

@ -13,7 +13,6 @@ setpoint::setpoint(unsigned char sp, unsigned char depth) :
DeviceDetails::DeviceDetails(QObject *parent) :
QObject(parent),
data(0),
syncTime(false),
setPointFallback(0),
ccrMode(0),

View file

@ -26,7 +26,6 @@ class DeviceDetails : public QObject
public:
explicit DeviceDetails(QObject *parent = 0);
device_data_t *data;
QString serialNo;
QString firmwareVersion;
QString customText;