Remove unused MAX_CACHE_LAYERS

This commit is contained in:
Alessandro Pasotti 2021-01-14 13:46:16 +01:00 committed by Nyall Dawson
parent c9ec378cb5
commit 0290024f21
3 changed files with 0 additions and 31 deletions

View File

@ -39,7 +39,6 @@ Provides some enum describing the environment currently supported for configurat
QGIS_SERVER_LOG_FILE,
QGIS_SERVER_LOG_STDERR,
QGIS_PROJECT_FILE,
MAX_CACHE_LAYERS,
QGIS_SERVER_IGNORE_BAD_LAYERS,
QGIS_SERVER_CACHE_DIRECTORY,
QGIS_SERVER_CACHE_SIZE,
@ -111,13 +110,6 @@ Returns parallel rendering setting.
Returns the maximum number of threads to use.
:return: the number of threads.
%End
int maxCacheLayers() const;
%Docstring
Returns the maximum number of cached layers.
:return: the number of cached layers.
%End
Qgis::MessageLevel logLevel() const;

View File

@ -108,17 +108,6 @@ void QgsServerSettings::initSettings()
};
mSettings[ sProject.envVar ] = sProject;
// max cache layers
const Setting sMaxCacheLayers = { QgsServerSettingsEnv::MAX_CACHE_LAYERS,
QgsServerSettingsEnv::DEFAULT_VALUE,
QStringLiteral( "Specify the maximum number of cached layers" ),
QString(),
QVariant::Int,
QVariant( 100 ),
QVariant()
};
mSettings[ sMaxCacheLayers.envVar ] = sMaxCacheLayers;
// cache directory
const Setting sCacheDir = { QgsServerSettingsEnv::QGIS_SERVER_CACHE_DIRECTORY,
QgsServerSettingsEnv::DEFAULT_VALUE,
@ -453,11 +442,6 @@ Qgis::MessageLevel QgsServerSettings::logLevel() const
return static_cast<Qgis::MessageLevel>( value( QgsServerSettingsEnv::QGIS_SERVER_LOG_LEVEL ).toInt() );
}
int QgsServerSettings::maxCacheLayers() const
{
return value( QgsServerSettingsEnv::MAX_CACHE_LAYERS ).toInt();
}
QString QgsServerSettings::projectFile() const
{
return value( QgsServerSettingsEnv::QGIS_PROJECT_FILE ).toString();

View File

@ -57,7 +57,6 @@ class SERVER_EXPORT QgsServerSettingsEnv : public QObject
QGIS_SERVER_LOG_FILE,
QGIS_SERVER_LOG_STDERR,
QGIS_PROJECT_FILE,
MAX_CACHE_LAYERS,
QGIS_SERVER_IGNORE_BAD_LAYERS, //!< Do not consider the whole project unavailable if it contains bad layers
QGIS_SERVER_CACHE_DIRECTORY,
QGIS_SERVER_CACHE_SIZE,
@ -135,12 +134,6 @@ class SERVER_EXPORT QgsServerSettings
*/
int maxThreads() const;
/**
* Returns the maximum number of cached layers.
* \returns the number of cached layers.
*/
int maxCacheLayers() const;
/**
* Returns the log level.
* \returns the log level.