Skip to content
Permalink
Browse files

remove unused QgsMapLayer::mTransparencyLevel

  • Loading branch information
jef-n committed Oct 10, 2013
1 parent 7f346a4 commit b2d582a5972c95578813fe35eca0124a7e33b20f
Showing with 0 additions and 20 deletions.
  1. +0 −13 src/core/qgsmaplayer.cpp
  2. +0 −3 src/core/qgsmaplayer.h
  3. +0 −4 src/core/raster/qgsrasterlayer.cpp
@@ -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
@@ -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
@@ -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;

@@ -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

0 comments on commit b2d582a

Please sign in to comment.
You can’t perform that action at this time.