Skip to content

Commit

Permalink
[Server] remove QgsWfsProjectParser
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Apr 8, 2017
1 parent eb3af08 commit d018f03
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 819 deletions.
1 change: 0 additions & 1 deletion python/server/qgsconfigcache.sip
Expand Up @@ -32,7 +32,6 @@ class QgsConfigCache: QObject
~QgsConfigCache();

QgsServerProjectParser* serverConfiguration( const QString& filePath );
QgsWfsProjectParser* wfsConfiguration( const QString& filePath, const QgsAccessControl* accessControl );
QgsWmsConfigParser* wmsConfiguration( const QString& filePath, const QgsAccessControl* accessControl, const QMap<QString, QString>& parameterMap = QMap< QString, QString >() );

private:
Expand Down
125 changes: 0 additions & 125 deletions python/server/qgswfserver.sip

This file was deleted.

1 change: 0 additions & 1 deletion python/server/server.sip
Expand Up @@ -23,7 +23,6 @@
%Include qgsserverprojectparser.sip
%Include qgswmsconfigparser.sip
%Include qgswmsprojectparser.sip
%Include qgswfsprojectparser.sip
%Include qgsconfigcache.sip
%Include qgsserversettings.sip
%Include qgsserverprojectutils.sip
Expand Down
1 change: 0 additions & 1 deletion src/server/CMakeLists.txt
Expand Up @@ -34,7 +34,6 @@ SET(qgis_mapserv_SRCS
qgsremotedatasourcebuilder.cpp
qgssentdatasourcebuilder.cpp
qgsserverlogger.cpp
qgswfsprojectparser.cpp
qgswmsconfigparser.cpp
qgswmsprojectparser.cpp
qgsserverprojectparser.cpp
Expand Down
28 changes: 0 additions & 28 deletions src/server/qgsconfigcache.cpp
Expand Up @@ -18,7 +18,6 @@
#include "qgsconfigcache.h"
#include "qgsmessagelog.h"
#include "qgsmslayercache.h"
#include "qgswfsprojectparser.h"
#include "qgswmsprojectparser.h"
#include "qgssldconfigparser.h"
#include "qgsaccesscontrol.h"
Expand Down Expand Up @@ -76,32 +75,6 @@ QgsServerProjectParser *QgsConfigCache::serverConfiguration( const QString &file
return new QgsServerProjectParser( doc, filePath );
}

QgsWfsProjectParser *QgsConfigCache::wfsConfiguration(
const QString &filePath
, const QgsAccessControl *accessControl
)
{
QgsWfsProjectParser *p = mWFSConfigCache.object( filePath );
if ( !p )
{
QDomDocument *doc = xmlDocument( filePath );
if ( !doc )
{
return nullptr;
}
p = new QgsWfsProjectParser(
filePath
, accessControl
);
mWFSConfigCache.insert( filePath, p );
p = mWFSConfigCache.object( filePath );
Q_ASSERT( p );
}

QgsMSLayerCache::instance()->setProjectMaxLayers( p->wfsLayers().size() );
return p;
}

QgsWmsConfigParser *QgsConfigCache::wmsConfiguration(
const QString &filePath
, const QgsAccessControl *accessControl
Expand Down Expand Up @@ -182,7 +155,6 @@ QDomDocument *QgsConfigCache::xmlDocument( const QString &filePath )
void QgsConfigCache::removeChangedEntry( const QString &path )
{
mWMSConfigCache.remove( path );
mWFSConfigCache.remove( path );

//xml document must be removed last, as other config cache destructors may require it
mXmlDocumentCache.remove( path );
Expand Down
6 changes: 0 additions & 6 deletions src/server/qgsconfigcache.h
Expand Up @@ -27,7 +27,6 @@

#include "qgis_server.h"
#include "qgswmsconfigparser.h"
#include "qgswfsprojectparser.h"

class QgsServerProjectParser;
class QgsAccessControl;
Expand All @@ -41,10 +40,6 @@ class SERVER_EXPORT QgsConfigCache : public QObject
static QgsConfigCache *instance();

QgsServerProjectParser *serverConfiguration( const QString &filePath );
QgsWfsProjectParser *wfsConfiguration(
const QString &filePath
, const QgsAccessControl *accessControl
);
QgsWmsConfigParser *wmsConfiguration(
const QString &filePath
, const QgsAccessControl *accessControl
Expand All @@ -64,7 +59,6 @@ class SERVER_EXPORT QgsConfigCache : public QObject

QCache<QString, QDomDocument> mXmlDocumentCache;
QCache<QString, QgsWmsConfigParser> mWMSConfigCache;
QCache<QString, QgsWfsProjectParser> mWFSConfigCache;

private slots:
//! Removes changed entry from this cache
Expand Down

0 comments on commit d018f03

Please sign in to comment.