Skip to content

Commit b2d582a

Browse files
committed
remove unused QgsMapLayer::mTransparencyLevel
1 parent 7f346a4 commit b2d582a

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

src/core/qgsmaplayer.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
QgsMapLayer::QgsMapLayer( QgsMapLayer::LayerType type,
4545
QString lyrname,
4646
QString source ) :
47-
mTransparencyLevel( 255 ), // 0 is completely transparent
4847
mValid( false ), // assume the layer is invalid
4948
mDataSource( source ),
5049
mLayerOrigName( lyrname ), // store the original name
@@ -693,18 +692,6 @@ void QgsMapLayer::setCrs( const QgsCoordinateReferenceSystem& srs, bool emitSign
693692
emit layerCrsChanged();
694693
}
695694

696-
#if 0
697-
unsigned int QgsMapLayer::getTransparency()
698-
{
699-
return mTransparencyLevel;
700-
}
701-
702-
void QgsMapLayer::setTransparency( unsigned int theInt )
703-
{
704-
mTransparencyLevel = theInt;
705-
}
706-
#endif
707-
708695
QString QgsMapLayer::capitaliseLayerName( const QString& name )
709696
{
710697
// Capitalise the first letter of the layer name if requested

src/core/qgsmaplayer.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,9 +470,6 @@ class CORE_EXPORT QgsMapLayer : public QObject
470470
/** Set error message */
471471
void setError( const QgsError & theError ) { mError = theError;}
472472

473-
/** Transparency level for this layer should be 0-255 (255 being opaque) */
474-
unsigned int mTransparencyLevel;
475-
476473
/** Extent of the layer */
477474
QgsRectangle mExtent;
478475

src/core/raster/qgsrasterlayer.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,6 @@ bool QgsRasterLayer::draw( QgsRenderContext& rendererContext )
255255
{
256256
QgsDebugMsg( "entered. (renderContext)" );
257257

258-
// Don't waste time drawing if transparency is at 0 (completely transparent)
259-
if ( mTransparencyLevel == 0 )
260-
return true;
261-
262258
QgsDebugMsg( "checking timestamp." );
263259

264260
// Check timestamp

0 commit comments

Comments
 (0)