Skip to content

Commit

Permalink
Remove unused MAX_CACHE_LAYERS
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Jan 15, 2021
1 parent c9ec378 commit 0290024
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 31 deletions.
8 changes: 0 additions & 8 deletions python/server/auto_generated/qgsserversettings.sip.in
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down
16 changes: 0 additions & 16 deletions src/server/qgsserversettings.cpp
Expand Up @@ -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,
Expand Down Expand Up @@ -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();
Expand Down
7 changes: 0 additions & 7 deletions src/server/qgsserversettings.h
Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 0290024

Please sign in to comment.