Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unused enum
  • Loading branch information
nyalldawson committed Mar 12, 2020
1 parent f894ca4 commit ca56f2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 66 deletions.
Expand Up @@ -31,28 +31,6 @@ and should only be set by the QgsDataProvider itself.
Constructor for :py:class:`QgsRasterDataProviderTemporalProperties`.

The ``enabled`` argument specifies whether the data provider has temporal capabilities.
%End

virtual ~QgsRasterDataProviderTemporalCapabilities();

enum TemporalMode
{
ModeFixedTemporalRange,
ModeTemporalRangeFromDataProvider
};

TemporalMode mode() const;
%Docstring
Returns the temporal mode.

.. seealso:: :py:func:`setMode`
%End

void setMode( TemporalMode mode );
%Docstring
Sets the temporal ``mode``.

.. seealso:: :py:func:`mode`
%End

enum IntervalHandlingMethod
Expand Down
18 changes: 3 additions & 15 deletions src/core/raster/qgsrasterdataprovidertemporalcapabilities.cpp
Expand Up @@ -90,26 +90,14 @@ bool QgsRasterDataProviderTemporalCapabilities::isReferenceEnable() const
return mReferenceEnable;
}

QgsRasterDataProviderTemporalCapabilities::TemporalMode QgsRasterDataProviderTemporalCapabilities::mode() const
{
return mMode;
}

void QgsRasterDataProviderTemporalCapabilities::setMode( TemporalMode mode )
{
if ( mMode == mode )
return;
mMode = mode;
}

QgsRasterDataProviderTemporalCapabilities::IntervalHandlingMethod QgsRasterDataProviderTemporalCapabilities::intervalHandlingMethod() const
{
return mFetchMode;
return mIntervalMatchMethod;
}

void QgsRasterDataProviderTemporalCapabilities::setIntervalHandlingMethod( IntervalHandlingMethod mode )
{
if ( mFetchMode == mode )
if ( mIntervalMatchMethod == mode )
return;
mFetchMode = mode;
mIntervalMatchMethod = mode;
}
30 changes: 1 addition & 29 deletions src/core/raster/qgsrasterdataprovidertemporalcapabilities.h
Expand Up @@ -45,31 +45,6 @@ class CORE_EXPORT QgsRasterDataProviderTemporalCapabilities : public QgsDataProv
*/
QgsRasterDataProviderTemporalCapabilities( bool enabled = false );

virtual ~QgsRasterDataProviderTemporalCapabilities() = default;

/**
* Mode of the temporal capabilities
**/
enum TemporalMode
{
ModeFixedTemporalRange = 0, //!< Mode when temporal capabilities have fixed start and end datetimes.
ModeTemporalRangeFromDataProvider = 1 //!< Mode when temporal capabilities provides the temporal range .
};

/**
* Returns the temporal mode.
*
*\see setMode()
**/
TemporalMode mode() const;

/**
* Sets the temporal \a mode.
*
*\see mode()
**/
void setMode( TemporalMode mode );

/**
* Method to use when resolving a temporal range to a data provider layer or band.
**/
Expand Down Expand Up @@ -237,10 +212,7 @@ class CORE_EXPORT QgsRasterDataProviderTemporalCapabilities : public QgsDataProv
bool mReferenceEnable = false;

//! Interval handling method
IntervalHandlingMethod mFetchMode = MatchUsingWholeRange;

//! Temporal capabilities mode.
TemporalMode mMode = ModeTemporalRangeFromDataProvider;
IntervalHandlingMethod mIntervalMatchMethod = MatchUsingWholeRange;

};

Expand Down

0 comments on commit ca56f2f

Please sign in to comment.