Skip to content

Commit ba26bc8

Browse files
committedJul 26, 2016
Remove the broken, unused QgsPseudoColorShader class
1 parent 156c098 commit ba26bc8

File tree

9 files changed

+1
-216
lines changed

9 files changed

+1
-216
lines changed
 

‎doc/api_break.dox

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ This page tries to maintain a list with incompatible changes that happened in pr
2727
<li>QgsCRSCache was removed. QgsCoordinateReferenceSystem now internally uses a cache for CRS creation,
2828
so there is no longer a need for the separate cache class. Code which previously called QgsCRSCache::updateCRSCache()
2929
should now call QgsCoordinateReferenceSystem::invalidateCache() and QgsCoordinateTransformCache::instance()->invalidateCrs( authid ).</li>
30+
<li>QgsPseudoColorShader. This shader has been broken for some time and was replaced by QgsSingleBandPseudoColorRenderer.</li>
3031
</ul>
3132

3233
\subsection qgis_api_break_3_0_global General changes

‎python/core/core.sip

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@
256256
%Include raster/qgslinearminmaxenhancementwithclip.sip
257257
%Include raster/qgsmultibandcolorrenderer.sip
258258
%Include raster/qgspalettedrasterrenderer.sip
259-
%Include raster/qgspseudocolorshader.sip
260259
%Include raster/qgsraster.sip
261260
%Include raster/qgsrasterbandstats.sip
262261
%Include raster/qgsrasterblock.sip

‎python/core/raster/qgspseudocolorshader.sip

Lines changed: 0 additions & 27 deletions
This file was deleted.

‎python/core/raster/qgsrastershaderfunction.sip

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@ class QgsRasterShaderFunction
33
%TypeHeaderCode
44
#include <qgsrastershaderfunction.h>
55
#include <qgscolorrampshader.h>
6-
#include <qgspseudocolorshader.h>
76
%End
87

98
%ConvertToSubClassCode
109
if (dynamic_cast<QgsColorRampShader*>(sipCpp) != NULL)
1110
sipType = sipType_QgsColorRampShader;
12-
else if (dynamic_cast<QgsPseudoColorShader*>(sipCpp) != NULL)
13-
sipType = sipType_QgsPseudoColorShader;
1411
else
1512
sipType = 0;
1613
%End

‎src/core/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ SET(QGIS_CORE_SRCS
298298
raster/qgscontrastenhancementfunction.cpp
299299
raster/qgslinearminmaxenhancement.cpp
300300
raster/qgslinearminmaxenhancementwithclip.cpp
301-
raster/qgspseudocolorshader.cpp
302301
raster/qgsraster.cpp
303302
raster/qgsrasterblock.cpp
304303
raster/qgsrasterchecker.cpp
@@ -779,7 +778,6 @@ SET(QGIS_CORE_HDRS
779778
raster/qgslinearminmaxenhancementwithclip.h
780779
raster/qgsmultibandcolorrenderer.h
781780
raster/qgspalettedrasterrenderer.h
782-
raster/qgspseudocolorshader.h
783781
raster/qgsraster.h
784782
raster/qgsrasterbandstats.h
785783
raster/qgsrasterblock.h

‎src/core/raster/qgspseudocolorshader.cpp

Lines changed: 0 additions & 117 deletions
This file was deleted.

‎src/core/raster/qgspseudocolorshader.h

Lines changed: 0 additions & 63 deletions
This file was deleted.

‎src/core/raster/qgsrasterlayer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ email : tim at linfiniti.com
3131
#include "qgspalettedrasterrenderer.h"
3232
#include "qgsprojectfiletransform.h"
3333
#include "qgsproviderregistry.h"
34-
#include "qgspseudocolorshader.h"
3534
#include "qgsrasterdataprovider.h"
3635
#include "qgsrasterdrawer.h"
3736
#include "qgsrasteriterator.h"

‎tests/src/python/acceptable_missing_doc.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@
305305
"QgsScaleVisibilityDialog": ["QgsScaleVisibilityDialog(QWidget *parent=nullptr, const QString &title=QString(), QgsMapCanvas *mapCanvas=nullptr)"],
306306
"QgsGraduatedSymbolRendererV2": ["scaleMethod() const ", "QgsGraduatedSymbolRendererV2(const QString &attrName=QString(), const QgsRangeList &ranges=QgsRangeList())", "updateRangeUpperValue(int rangeIndex, double value)", "sortByValue(Qt::SortOrder order=Qt::AscendingOrder)", "createRenderer(QgsVectorLayer *vlayer, const QString &attrName, int classes, Mode mode, QgsSymbolV2 *symbol, QgsVectorColorRampV2 *ramp, bool inverted=false, const QgsRendererRangeV2LabelFormat &legendFormat=QgsRendererRangeV2LabelFormat())", "addClass(QgsSymbolV2 *symbol)", "setInvertedColorRamp(bool inverted)", "setMode(Mode mode)", "updateRangeSymbol(int rangeIndex, QgsSymbolV2 *symbol)", "setSizeScaleField(const QString &fieldOrExpression)", "updateRangeLowerValue(int rangeIndex, double value)", "GraduatedMethod", "deleteClass(int idx)", "deleteAllClasses()", "Mode", "setClassAttribute(const QString &attr)", "sortByLabel(Qt::SortOrder order=Qt::AscendingOrder)", "symbolForValue(double value)", "setScaleMethod(QgsSymbolV2::ScaleMethod scaleMethod)", "updateRangeLabel(int rangeIndex, const QString &label)", "ranges() const ", "mode() const ", "sizeScaleField() const ", "classAttribute() const "],
307307
"QgsPaintEffectWidget": ["QgsPaintEffectWidget(QWidget *parent=nullptr)"],
308-
"QgsPseudoColorShader": ["QgsPseudoColorShader(double theMinimumValue=0.0, double theMaximumValue=255.0)", "classBreakMax2() const ", "classBreakMin2() const ", "classBreakMin3() const ", "classBreakMax1() const ", "classBreakMin1() const "],
309308
"QgsDetailedItemDelegate": ["QgsDetailedItemDelegate(QObject *parent=nullptr)", "horizontalSpacing() const ", "setHorizontalSpacing(int theValue)", "setVerticalSpacing(int theValue)", "verticalSpacing() const "],
310309
"FieldSorter": ["FieldSorter(QgsAtlasComposition::SorterKeys &keys, bool ascending=true)", "operator()(const QPair< QgsFeatureId, QString > &id1, const QPair< QgsFeatureId, QString > &id2)"],
311310
"QgsMessageLogConsole": ["logMessage(const QString &message, const QString &tag, QgsMessageLog::MessageLevel level)"],
@@ -937,7 +936,6 @@
937936
"QgsVectorLayerUndoCommandAddFeature",
938937
"QgsAuthConfigEditor",
939938
"QgsCharacterSelectorDialog",
940-
"QgsPseudoColorShader",
941939
"QgsSpatialIndex",
942940
"QgsAbstractFeatureIterator",
943941
"QgsMapCanvasMap",

0 commit comments

Comments
 (0)
Please sign in to comment.