Skip to content
Permalink
Browse files

Remove unused enum

  • Loading branch information
nyalldawson committed Mar 12, 2020
1 parent f894ca4 commit ca56f2f5052a2585610a656173e1c10966ea330d
@@ -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
@@ -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;
}
@@ -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.
**/
@@ -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;

};

0 comments on commit ca56f2f

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