Skip to content

Commit

Permalink
remove unused QgsMapLayer::mTransparencyLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Oct 10, 2013
1 parent 7f346a4 commit b2d582a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
13 changes: 0 additions & 13 deletions src/core/qgsmaplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
QgsMapLayer::QgsMapLayer( QgsMapLayer::LayerType type,
QString lyrname,
QString source ) :
mTransparencyLevel( 255 ), // 0 is completely transparent
mValid( false ), // assume the layer is invalid
mDataSource( source ),
mLayerOrigName( lyrname ), // store the original name
Expand Down Expand Up @@ -693,18 +692,6 @@ void QgsMapLayer::setCrs( const QgsCoordinateReferenceSystem& srs, bool emitSign
emit layerCrsChanged();
}

#if 0
unsigned int QgsMapLayer::getTransparency()
{
return mTransparencyLevel;
}

void QgsMapLayer::setTransparency( unsigned int theInt )
{
mTransparencyLevel = theInt;
}
#endif

QString QgsMapLayer::capitaliseLayerName( const QString& name )
{
// Capitalise the first letter of the layer name if requested
Expand Down
3 changes: 0 additions & 3 deletions src/core/qgsmaplayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,6 @@ class CORE_EXPORT QgsMapLayer : public QObject
/** Set error message */
void setError( const QgsError & theError ) { mError = theError;}

/** Transparency level for this layer should be 0-255 (255 being opaque) */
unsigned int mTransparencyLevel;

/** Extent of the layer */
QgsRectangle mExtent;

Expand Down
4 changes: 0 additions & 4 deletions src/core/raster/qgsrasterlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,6 @@ bool QgsRasterLayer::draw( QgsRenderContext& rendererContext )
{
QgsDebugMsg( "entered. (renderContext)" );

// Don't waste time drawing if transparency is at 0 (completely transparent)
if ( mTransparencyLevel == 0 )
return true;

QgsDebugMsg( "checking timestamp." );

// Check timestamp
Expand Down

0 comments on commit b2d582a

Please sign in to comment.