From 9a9913bb27c6224336861ede8eae99d004286152 Mon Sep 17 00:00:00 2001 From: tstellanova Date: Tue, 6 Aug 2013 07:42:05 -0700 Subject: [PATCH] remove unused methods --- src/uas/QGCUASParamManager.cc | 3 +++ src/uas/QGCUASParamManager.h | 23 +---------------------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/src/uas/QGCUASParamManager.cc b/src/uas/QGCUASParamManager.cc index 7193bce82..ee42aa968 100644 --- a/src/uas/QGCUASParamManager.cc +++ b/src/uas/QGCUASParamManager.cc @@ -24,4 +24,7 @@ void QGCUASParamManager::requestParameterListUpdate(int component) Q_UNUSED(component); } +bool QGCUASParamManager::getParameterValue(int component, const QString& parameter, QVariant& value) const { + return paramDataModel->getOnboardParameterValue(component,parameter,value); +} diff --git a/src/uas/QGCUASParamManager.h b/src/uas/QGCUASParamManager.h index 130e9a18c..7f970ef6d 100644 --- a/src/uas/QGCUASParamManager.h +++ b/src/uas/QGCUASParamManager.h @@ -15,27 +15,7 @@ class QGCUASParamManager : public QWidget public: QGCUASParamManager(UASInterface* uas, QWidget *parent = 0); - QList getParameterNames(int component) const { - return onboardParameters.value(component)->keys(); - } - QList getParameterValues(int component) const { - return onboardParameters.value(component)->values(); - } - bool getParameterValue(int component, const QString& parameter, QVariant& value) const { - if (!onboardParameters.contains(component)) - { - return false; - } - - if (!onboardParameters.value(component)->contains(parameter)) - { - return false; - } - - value = onboardParameters.value(component)->value(parameter); - - return true; - } + virtual bool getParameterValue(int component, const QString& parameter, QVariant& value) const; virtual bool isParamMinKnown(const QString& param) = 0; virtual bool isParamMaxKnown(const QString& param) = 0; @@ -66,7 +46,6 @@ protected: // Parameter data model UASInterface* mav; ///< The MAV this widget is controlling - QMap* > onboardParameters; ///< All parameters UASParameterDataModel* paramDataModel;///< Shared data model of parameters // Communications management -- 2.22.0