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>
This commit is contained in:
Dirk Hohndel 2017-08-26 12:11:44 -07:00
parent e0b1d2dc84
commit aabcff9c54

View file

@ -1394,8 +1394,6 @@ void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event)
} }
} }
// create the profile context menu // create the profile context menu
QPointF scenePos = mapToScene(event->pos());
struct plot_data *entry = getEntryFromPos(scenePos);
GasSelectionModel *model = GasSelectionModel::instance(); GasSelectionModel *model = GasSelectionModel::instance();
model->repopulate(); model->repopulate();
int rowCount = model->rowCount(); int rowCount = model->rowCount();
@ -1438,6 +1436,8 @@ void ProfileWidget2::contextMenuEvent(QContextMenuEvent *event)
m.addAction(action); m.addAction(action);
} }
#if 0 // FIXME::: FINISH OR DISABLE #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 // 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 // at either side of a gas change
if (dcEvent->type == SAMPLE_EVENT_GASCHANGE || dcEvent->type == SAMPLE_EVENT_GASCHANGE2) { if (dcEvent->type == SAMPLE_EVENT_GASCHANGE || dcEvent->type == SAMPLE_EVENT_GASCHANGE2) {