# HG changeset patch # User Chris Cannam # Date 1488290809 0 # Node ID f7ebb72c5e1240eecd6cf5ce7b6f87d3fda4b8d5 # Parent f0e291fa7b9c36135f0db5ee866f9a15b424f8b0 Remove unused function diff -r f0e291fa7b9c -r f7ebb72c5e12 layer/Colour3DPlotLayer.cpp --- a/layer/Colour3DPlotLayer.cpp Tue Feb 28 14:06:24 2017 +0000 +++ b/layer/Colour3DPlotLayer.cpp Tue Feb 28 14:06:49 2017 +0000 @@ -994,52 +994,6 @@ paint.restore(); } -DenseThreeDimensionalModel::Column -Colour3DPlotLayer::getColumn(int col) const -{ - Profiler profiler("Colour3DPlotLayer::getColumn"); - - DenseThreeDimensionalModel::Column values = m_model->getColumn(col); - values.resize(m_model->getHeight(), 0.f); - if (m_normalization != ColumnNormalization::Max1 && - m_normalization != ColumnNormalization::Hybrid) { - return values; - } - - double colMax = 0.f, colMin = 0.f; - double min = 0.f, max = 0.f; - - int nv = int(values.size()); - - min = m_model->getMinimumLevel(); - max = m_model->getMaximumLevel(); - - for (int y = 0; y < nv; ++y) { - if (y == 0 || values.at(y) > colMax) colMax = values.at(y); - if (y == 0 || values.at(y) < colMin) colMin = values.at(y); - } - if (colMin == colMax) colMax = colMin + 1; - - for (int y = 0; y < nv; ++y) { - - double value = values.at(y); - double norm = (value - colMin) / (colMax - colMin); - double newvalue = min + (max - min) * norm; - - if (value != newvalue) values[y] = float(newvalue); - } - - if (m_normalization == ColumnNormalization::Hybrid - && (colMax > 0.0)) { - double logmax = log10(colMax); - for (int y = 0; y < nv; ++y) { - values[y] = float(values[y] * logmax); - } - } - - return values; -} - Colour3DPlotRenderer * Colour3DPlotLayer::getRenderer(const LayerGeometryProvider *v) const { diff -r f0e291fa7b9c -r f7ebb72c5e12 layer/Colour3DPlotLayer.h --- a/layer/Colour3DPlotLayer.h Tue Feb 28 14:06:24 2017 +0000 +++ b/layer/Colour3DPlotLayer.h Tue Feb 28 14:06:49 2017 +0000 @@ -211,8 +211,6 @@ * if the vertical scale is the usual way up). */ double getBinForY(const LayerGeometryProvider *, double y) const; - - DenseThreeDimensionalModel::Column getColumn(int col) const; int getColourScaleWidth(QPainter &) const;