Skip to content

Commit

Permalink
Remove dead menu actions that were never attached to anything.
Browse files Browse the repository at this point in the history
Refs #10639
  • Loading branch information
martyngigg committed Nov 27, 2014
1 parent 936ea4f commit 6b915a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
23 changes: 0 additions & 23 deletions Code/Mantid/MantidPlot/src/Mantid/MantidDock.cpp
Expand Up @@ -181,9 +181,6 @@ void MantidDockWidget::createWorkspaceMenuActions()
m_plotSpecErr = new QAction(tr("Plot Spectrum with Errors..."),this);
connect(m_plotSpecErr,SIGNAL(triggered()),this,SLOT(plotSpectraErr()));

m_plotSpecDistr = new QAction(tr("Plot spectrum as distribution..."),this);
connect(m_plotSpecDistr,SIGNAL(triggered()),this,SLOT(plotSpectraDistribution()));

m_colorFill = new QAction(tr("Color Fill Plot"), this);
connect(m_colorFill, SIGNAL(triggered()), this, SLOT(drawColorFillPlot()));

Expand Down Expand Up @@ -1269,16 +1266,6 @@ void MantidDockWidget::plotSpectra()
m_mantidUI->plot1D(toPlot, true, MantidQt::DistributionDefault, false);
}

/// Plots a single spectrum from each selected workspace
void MantidDockWidget::plotSpectraDistribution()
{
const QMultiMap<QString,std::set<int> > toPlot = m_tree->chooseSpectrumFromSelected();
// An empty map will be returned if the user clicks cancel in the spectrum selection
if (toPlot.empty()) return;

m_mantidUI->plot1D(toPlot, true, MantidQt::DistributionTrue, false);
}

/// Plots a single spectrum from each selected workspace with errors
void MantidDockWidget::plotSpectraErr()
{
Expand All @@ -1289,16 +1276,6 @@ void MantidDockWidget::plotSpectraErr()
m_mantidUI->plot1D(toPlot, true, MantidQt::DistributionDefault, true);
}

/// Plots a single spectrum from each selected workspace with erros
void MantidDockWidget::plotSpectraDistributionErr()
{
const QMultiMap<QString,std::set<int> > toPlot = m_tree->chooseSpectrumFromSelected();
// An empty map will be returned if the user clicks cancel in the spectrum selection
if (toPlot.empty()) return;

m_mantidUI->plot1D(toPlot, true, MantidQt::DistributionTrue, true);
}

/**
* Draw a color fill plot of the workspaces that are currently selected.
* NOTE: The drawing of 2D plots is currently intimately linked with MantidMatrix meaning
Expand Down
4 changes: 1 addition & 3 deletions Code/Mantid/MantidPlot/src/Mantid/MantidDock.h
Expand Up @@ -76,9 +76,7 @@ private slots:
void treeSelectionChanged();
void groupingButtonClick();
void plotSpectra();
void plotSpectraDistribution();
void plotSpectraErr();
void plotSpectraDistributionErr();
void drawColorFillPlot();
void showDetectorTable();
void convertToMatrixWorkspace();
Expand Down Expand Up @@ -130,7 +128,7 @@ private slots:
QFileDialog *m_saveFolderDialog;

//Context-menu actions
QAction *m_showData, *m_showInst, *m_plotSpec, *m_plotSpecErr, *m_plotSpecDistr,
QAction *m_showData, *m_showInst, *m_plotSpec, *m_plotSpecErr,
*m_showDetectors, *m_showBoxData, *m_showVatesGui,
*m_showSpectrumViewer,
*m_showSliceViewer,
Expand Down

0 comments on commit 6b915a3

Please sign in to comment.