Skip to content

Commit f636147

Browse files
committedFeb 26, 2019
Remove unused functions
1 parent d67875f commit f636147

File tree

2 files changed

+0
-46
lines changed

2 files changed

+0
-46
lines changed
 

‎src/server/services/wms/qgswmsutils.cpp

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,6 @@ namespace QgsWms
103103
return UNKN;
104104
}
105105

106-
void readLayersAndStyles( const QgsServerRequest::Parameters &parameters, QStringList &layersList, QStringList &stylesList )
107-
{
108-
//get layer and style lists from the parameters trying LAYERS and LAYER as well as STYLE and STYLES for GetLegendGraphic compatibility
109-
layersList = parameters.value( QStringLiteral( "LAYER" ) ).split( ',', QString::SkipEmptyParts );
110-
layersList = layersList + parameters.value( QStringLiteral( "LAYERS" ) ).split( ',', QString::SkipEmptyParts );
111-
stylesList = parameters.value( QStringLiteral( "STYLE" ) ).split( ',', QString::SkipEmptyParts );
112-
stylesList = stylesList + parameters.value( QStringLiteral( "STYLES" ) ).split( ',', QString::SkipEmptyParts );
113-
}
114-
115-
116106
// Write image response
117107
void writeImage( QgsServerResponse &response, QImage &img, const QString &formatStr,
118108
int imageQuality )
@@ -180,25 +170,4 @@ namespace QgsWms
180170
QString( "Output format '%1' is not supported in the GetMap request" ).arg( formatStr ) );
181171
}
182172
}
183-
184-
QgsRectangle parseBbox( const QString &bboxStr )
185-
{
186-
QStringList lst = bboxStr.split( ',' );
187-
if ( lst.count() != 4 )
188-
return QgsRectangle();
189-
190-
double d[4];
191-
bool ok;
192-
for ( int i = 0; i < 4; i++ )
193-
{
194-
lst[i].replace( ' ', '+' );
195-
d[i] = lst[i].toDouble( &ok );
196-
if ( !ok )
197-
return QgsRectangle();
198-
}
199-
return QgsRectangle( d[0], d[1], d[2], d[3] );
200-
}
201-
202173
} // namespace QgsWms
203-
204-

‎src/server/services/wms/qgswmsutils.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,6 @@ namespace QgsWms
6767
*/
6868
void writeImage( QgsServerResponse &response, QImage &img, const QString &formatStr,
6969
int imageQuality = -1 );
70-
71-
/**
72-
* Parse bbox parameter
73-
* \param bboxstr the bbox string as comma separated values
74-
* \returns QgsRectangle
75-
*
76-
* If the parsing fail then an empty bbox is returned
77-
*/
78-
QgsRectangle parseBbox( const QString &bboxstr );
79-
80-
/**
81-
* Reads the layers and style lists from the parameters LAYERS and STYLES
82-
*/
83-
void readLayersAndStyles( const QgsServerRequest::Parameters &parameters, QStringList &layersList, QStringList &stylesList );
84-
8570
} // namespace QgsWms
8671

8772
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.