Skip to content

Commit 04d770d

Browse files
signedavnyalldawson
authored andcommitted
removed unused docs
and unused db entry
1 parent 75b9c66 commit 04d770d

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

src/core/qgsfield.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include <QIcon>
2525
#include <QLocale>
2626
#include <QJsonDocument>
27-
#include <QJsonObject>
2827

2928
/***************************************************************************
3029
* This class is considered CRITICAL and any change MUST be accompanied with

src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4221,11 +4221,8 @@ static QVariant parseJson( const QString &txt )
42214221
{
42224222
QVariant result;
42234223
QJsonDocument jsonResponse = QJsonDocument::fromJson( txt.toUtf8() );
4224-
//it's null when no json format
4224+
//it's null if no json format
42254225
result = jsonResponse.toVariant();
4226-
4227-
//TODO json/jsonb convert toVariantMap from QJsonObject in case it's a map etc.
4228-
//we can check there with jsonResponse.isArray if it's an array etc.
42294226
return result;
42304227
}
42314228

tests/testdata/provider/testdata_pg_json.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ CREATE TABLE qgis_test.json
1111
INSERT INTO qgis_test.json(jvalue, jbvalue)
1212
VALUES
1313
('[1,2,3]', '[4,5,6]'),
14-
('{"a":1,"b":2}', '{"c":4,"d":5}'),
15-
('123', '456');
14+
('{"a":1,"b":2}', '{"c":4,"d":5}');

0 commit comments

Comments
 (0)