Cleanup: comment out function that is used by commented out code

The ProfileWidget2::getEntryFromPos() function was only used
by code that was commented out. Thus comment it out as well.

Moreover, turn the accompanying FIXME comments into TODO comments
to avoid a new LGTML alert.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-07-06 12:09:15 +02:00 committed by Dirk Hohndel
parent 4724c88533
commit 459f9acc67

View file

@ -1378,6 +1378,7 @@ bool ProfileWidget2::isPlanner()
return currentState == PLAN; return currentState == PLAN;
} }
#if 0 // TODO::: FINISH OR DISABLE
struct plot_data *ProfileWidget2::getEntryFromPos(QPointF pos) struct plot_data *ProfileWidget2::getEntryFromPos(QPointF pos)
{ {
// find the time stamp corresponding to the mouse position // find the time stamp corresponding to the mouse position
@ -1391,6 +1392,7 @@ struct plot_data *ProfileWidget2::getEntryFromPos(QPointF pos)
} }
return entry; return entry;
} }
#endif
void ProfileWidget2::setReplot(bool state) void ProfileWidget2::setReplot(bool state)
{ {
@ -1509,7 +1511,7 @@ void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event)
connect(action, SIGNAL(triggered(bool)), this, SLOT(editName())); connect(action, SIGNAL(triggered(bool)), this, SLOT(editName()));
m.addAction(action); m.addAction(action);
} }
#if 0 // FIXME::: FINISH OR DISABLE #if 0 // TODO::: FINISH OR DISABLE
QPointF scenePos = mapToScene(event->pos()); QPointF scenePos = mapToScene(event->pos());
struct plot_data *entry = getEntryFromPos(scenePos); struct plot_data *entry = getEntryFromPos(scenePos);
// this shows how to figure out if we should ask the user if they want adjust interpolated pressures // this shows how to figure out if we should ask the user if they want adjust interpolated pressures