diff options
author | Juha Vuolle <juha.vuolle@insta.fi> | 2021-06-16 12:22:13 +0300 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-06-22 11:04:49 +0000 |
commit | 6cce2d5d53f16f764e38bb7c29196465718fa3cf (patch) | |
tree | 73e1baa3623df77f446cf0a2491cefed4393658d /src | |
parent | e09918c5b186443bcdf4a4b14d98530e56f11f65 (diff) |
Remove unused '_update()' function (code cleanup)
Task-number: QTBUG-92505
Change-Id: I808065376616ab87af058b2fc5012fc691514589
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
(cherry picked from commit 8ca52678587e2c7e7bc45bf205a734aad72e3008)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/sensorsquick/qmlrotationsensor.cpp | 4 | ||||
-rw-r--r-- | src/sensorsquick/qmlrotationsensor_p.h | 1 | ||||
-rw-r--r-- | src/sensorsquick/qmlsensor.cpp | 6 | ||||
-rw-r--r-- | src/sensorsquick/qmlsensor_p.h | 1 |
4 files changed, 0 insertions, 12 deletions
diff --git a/src/sensorsquick/qmlrotationsensor.cpp b/src/sensorsquick/qmlrotationsensor.cpp index 71e77c01..c9cbeb21 100644 --- a/src/sensorsquick/qmlrotationsensor.cpp +++ b/src/sensorsquick/qmlrotationsensor.cpp @@ -92,10 +92,6 @@ bool QmlRotationSensor::hasZ() const return m_sensor->hasZ(); } -void QmlRotationSensor::_update() -{ -} - /*! \qmltype RotationReading \instantiates QmlRotationSensorReading diff --git a/src/sensorsquick/qmlrotationsensor_p.h b/src/sensorsquick/qmlrotationsensor_p.h index a3799968..5d6bcef1 100644 --- a/src/sensorsquick/qmlrotationsensor_p.h +++ b/src/sensorsquick/qmlrotationsensor_p.h @@ -74,7 +74,6 @@ Q_SIGNALS: void hasZChanged(bool hasZ); private: - void _update() override; QRotationSensor *m_sensor; QmlSensorReading *createReading() const override; }; diff --git a/src/sensorsquick/qmlsensor.cpp b/src/sensorsquick/qmlsensor.cpp index 970f8198..eccdb57b 100644 --- a/src/sensorsquick/qmlsensor.cpp +++ b/src/sensorsquick/qmlsensor.cpp @@ -494,17 +494,11 @@ void QmlSensor::componentComplete() if (output.count()) Q_EMIT outputRangesChanged(); - _update(); - connect(sensor(), SIGNAL(readingChanged()), this, SLOT(updateReading())); if (m_activateOnComplete) start(); } -void QmlSensor::_update() -{ -} - void QmlSensor::updateReading() { if (m_reading) { diff --git a/src/sensorsquick/qmlsensor_p.h b/src/sensorsquick/qmlsensor_p.h index c6c748e8..b5a63cfd 100644 --- a/src/sensorsquick/qmlsensor_p.h +++ b/src/sensorsquick/qmlsensor_p.h @@ -192,7 +192,6 @@ private Q_SLOTS: private: void classBegin() override; - virtual void _update(); bool m_componentComplete = false; bool m_activateOnComplete = false; Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS(QmlSensor, QmlSensorReading*, |