From 459f9acc67df74df206c313389e43d1bf5b80086 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 6 Jul 2019 12:09:15 +0200 Subject: 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 --- profile-widget/profilewidget2.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'profile-widget') diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 40bd92fb9..32842a2f2 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -1378,6 +1378,7 @@ bool ProfileWidget2::isPlanner() return currentState == PLAN; } +#if 0 // TODO::: FINISH OR DISABLE struct plot_data *ProfileWidget2::getEntryFromPos(QPointF pos) { // find the time stamp corresponding to the mouse position @@ -1391,6 +1392,7 @@ struct plot_data *ProfileWidget2::getEntryFromPos(QPointF pos) } return entry; } +#endif void ProfileWidget2::setReplot(bool state) { @@ -1509,7 +1511,7 @@ void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event) connect(action, SIGNAL(triggered(bool)), this, SLOT(editName())); m.addAction(action); } -#if 0 // FIXME::: FINISH OR DISABLE +#if 0 // TODO::: FINISH OR DISABLE QPointF scenePos = mapToScene(event->pos()); struct plot_data *entry = getEntryFromPos(scenePos); // this shows how to figure out if we should ask the user if they want adjust interpolated pressures -- cgit v1.2.3-70-g09d2