Skip to content
Permalink
Browse files

Remove redundant code for setting default layer temporal properties

  • Loading branch information
nyalldawson committed Mar 12, 2020
1 parent 0d49009 commit 19499f37f4db293e712c8b2f6882ced1ecd2e7a6
Showing with 0 additions and 10 deletions.
  1. +0 −10 src/gui/raster/qgsrasterlayertemporalpropertieswidget.cpp
@@ -99,16 +99,6 @@ void QgsRasterLayerTemporalPropertiesWidget::setDateTimeInputsLimit()
QgsRasterLayer *layer = qobject_cast<QgsRasterLayer *>( mLayer );
if ( layer && layer->temporalProperties() )
{
if ( layer->providerType() == QLatin1String( "wms" ) )
{
layer->temporalProperties()->setMode(
QgsRasterLayerTemporalProperties::ModeTemporalRangeFromDataProvider );
layer->temporalProperties()->setFixedTemporalRange(
layer->dataProvider()->temporalCapabilities()->availableTemporalRange() );
layer->temporalProperties()->setFixedReferenceTemporalRange(
layer->dataProvider()->temporalCapabilities()->availableReferenceTemporalRange() );
}

QgsDateTimeRange fixedRange = layer->temporalProperties()->fixedTemporalRange();
QgsDateTimeRange fixedReferenceRange = layer->temporalProperties()->fixedReferenceTemporalRange();

0 comments on commit 19499f3

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