Commit c5a11aaa authored by Don Gagne's avatar Don Gagne

Remove unused code

parent 2b00efc9
......@@ -21,9 +21,6 @@ QGCUASParamManager* QGCUASParamManager::initWithUAS(UASInterface* uas)
{
mav = uas;
// Load default values and tooltips for data model
loadParamMetaInfoCSV();
paramDataModel.setUASID(mav->getUASID());
paramCommsMgr.initWithUAS(uas);
......@@ -143,30 +140,6 @@ void QGCUASParamManager::setPendingParam(int compId, const QString& paramName,
void QGCUASParamManager::loadParamMetaInfoCSV()
{
// Load default values and tooltips
QString autopilot(mav->getAutopilotTypeName());
QDir appDir = QApplication::applicationDirPath();
appDir.cd("files");
QString fileName = QString("%1/%2/parameter_tooltips/tooltips.txt").arg(appDir.canonicalPath()).arg(autopilot.toLower());
QFile paramMetaFile(fileName);
qDebug() << "loadParamMetaInfoCSV for autopilot: " << autopilot << " from file: " << fileName;
if (!paramMetaFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
qDebug() << "loadParamMetaInfoCSV couldn't open:" << fileName;
return;
}
QTextStream in(&paramMetaFile);
paramDataModel.loadParamMetaInfoFromStream(in);
paramMetaFile.close();
}
UASInterface* QGCUASParamManager::getUAS()
{
return mav;
......
......@@ -65,10 +65,6 @@ public:
virtual bool parametersReady(void) { return _parametersReady; }
protected:
/** @brief Load parameter meta information from appropriate CSV file */
virtual void loadParamMetaInfoCSV();
void connectToModelAndComms();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment