From aabcff9c5402a9b83c799a0a29172777e0383217 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 26 Aug 2017 12:11:44 -0700 Subject: [PATCH] Move unused code into the disabled block These varaiables are only used in the code that we currently aren't compiling. Signed-off-by: Dirk Hohndel --- profile-widget/profilewidget2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index d8fd8da2c..e87620c9a 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -1394,8 +1394,6 @@ void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event) } } // create the profile context menu - QPointF scenePos = mapToScene(event->pos()); - struct plot_data *entry = getEntryFromPos(scenePos); GasSelectionModel *model = GasSelectionModel::instance(); model->repopulate(); int rowCount = model->rowCount(); @@ -1438,6 +1436,8 @@ void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event) m.addAction(action); } #if 0 // FIXME::: 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 // at either side of a gas change if (dcEvent->type == SAMPLE_EVENT_GASCHANGE || dcEvent->type == SAMPLE_EVENT_GASCHANGE2) {