Commit 97a94b63 authored by Don Gagne's avatar Don Gagne

Remove unused code

parent 6e2efab7
......@@ -161,26 +161,6 @@ bool MissionSettingsItem::addMissionEndAction(QList<MissionItem*>& items, int se
// IMPORTANT NOTE: If anything changes here you must also change MissionSettingsItem::scanForMissionSettings
// Find last waypoint coordinate information so we have a lat/lon/alt to use
QGeoCoordinate lastWaypointCoord;
MAV_FRAME lastWaypointFrame;
bool found = false;
for (int i=items.count()-1; i>0; i--) {
MissionItem* missionItem = items[i];
const MissionCommandUIInfo* uiInfo = qgcApp()->toolbox()->missionCommandTree()->getUIInfo(_vehicle, (MAV_CMD)missionItem->command());
if (uiInfo->specifiesCoordinate() && !uiInfo->isStandaloneCoordinate()) {
lastWaypointCoord = missionItem->coordinate();
lastWaypointFrame = missionItem->frame();
found = true;
break;
}
}
if (!found) {
return false;
}
if (_missionEndRTL) {
qCDebug(MissionSettingsComplexItemLog) << "Appending end action RTL seqNum" << seqNum;
item = new MissionItem(seqNum,
......
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