diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-08-26 12:11:44 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-08-26 12:11:44 -0700 |
commit | aabcff9c5402a9b83c799a0a29172777e0383217 (patch) | |
tree | a9c83985d463c99ad4768f4d079a19aa5312f831 /profile-widget | |
parent | e0b1d2dc845fcd11f867cc957b968ca1cf6054fe (diff) | |
download | subsurface-aabcff9c5402a9b83c799a0a29172777e0383217.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'profile-widget')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 4 |
1 files 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) { |