Permalink
Browse files

Refs #4728 remove unused legacy code

  • Loading branch information...
1 parent bdc8596 commit 8ae8dbf3a141ebc67881ce18770e51db75fbe244 Janik Zikovsky committed Apr 27, 2012
@@ -64,8 +64,6 @@ class EXPORT_OPT_MANTIDQT_API MantidQwtIMDWorkspaceData: public QObject, public
void saveLowestPositiveValue(const double v);
bool setAsDistribution(bool on = true);
- void applyOffsets(const double xOffset, const double yOffset);
-
private:
void cacheLinePlot();
@@ -60,8 +60,6 @@ class EXPORT_OPT_MANTIDQT_API MantidQwtMatrixWorkspaceData: public QObject, pu
void saveLowestPositiveValue(const double v);
bool setAsDistribution(bool on = true);
- void applyOffsets(const double xOffset, const double yOffset);
-
private:
friend class MantidMatrixCurve;
@@ -228,11 +228,6 @@ void MantidQwtIMDWorkspaceData::saveLowestPositiveValue(const double v)
if (v > 0) m_minPositive = v;
}
-void MantidQwtIMDWorkspaceData::applyOffsets(const double, const double)
-{
- std::runtime_error("MantidQwtIMDWorkspaceData::applyOffsets not implemented");
-}
-
bool MantidQwtIMDWorkspaceData::setAsDistribution(bool on)
{
m_isDistribution = on;
@@ -119,12 +119,6 @@ void MantidQwtMatrixWorkspaceData::saveLowestPositiveValue(const double v)
if (v > 0) m_minPositive = v;
}
-void MantidQwtMatrixWorkspaceData::applyOffsets(const double xOffset, const double yOffset)
-{
- std::transform(m_workspace->readX(m_spec).begin(),m_workspace->readX(m_spec).end(),m_X.begin(),std::bind2nd(std::plus<double>(),xOffset));
- std::transform(m_workspace->readY(m_spec).begin(),m_workspace->readY(m_spec).end(),m_Y.begin(),std::bind2nd(std::plus<double>(),yOffset));
-}
-
bool MantidQwtMatrixWorkspaceData::setAsDistribution(bool on)
{
m_isDistribution = on && m_isHistogram;

0 comments on commit 8ae8dbf

Please sign in to comment.