summaryrefslogtreecommitdiffstats
path: root/src/xml
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-04-12 09:49:30 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-04-17 21:02:32 +0200
commit69d4ecd6ef9057cb3703178277042ff7a7411459 (patch)
tree15069fb98f8f609e7caf841d9a29c9f43a4f1092 /src/xml
parent94279afff86252b8b777450a56990fa33ffbb0d7 (diff)
Remove unused documentation code snippets
Modules: - Core - Gui - Widgets - Open(Widgets) - PrintSupport - Sql - Network - Concurrent - Testlib Pick-to: 6.5 Change-Id: I63e58c01bec4bd162486020f0085227fdaa83b18 Reviewed-by: Ahmad Samir <a.samirh78@gmail.com> Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/xml')
-rw-r--r--src/xml/doc/snippets/code/src_xml_dom_qdom.cpp11
-rw-r--r--src/xml/doc/snippets/code/src_xml_sax_qxml.cpp6
-rw-r--r--src/xml/doc/snippets/rsslisting/handler.cpp2
-rw-r--r--src/xml/doc/snippets/rsslisting/listing.cpp4
4 files changed, 0 insertions, 23 deletions
diff --git a/src/xml/doc/snippets/code/src_xml_dom_qdom.cpp b/src/xml/doc/snippets/code/src_xml_dom_qdom.cpp
index a97a5afcf6..7c7a59745b 100644
--- a/src/xml/doc/snippets/code/src_xml_dom_qdom.cpp
+++ b/src/xml/doc/snippets/code/src_xml_dom_qdom.cpp
@@ -89,17 +89,6 @@ for(QDomNode n = element.firstChild(); !n.isNull(); n = n.nextSibling())
//! [10]
}
-void FirstElement()
-{
-//! [11]
-QDomDocument doc;
-QDomElement root = doc.firstChildElement("database");
-QDomElement elt = root.firstChildElement("entry");
-for (; !elt.isNull(); elt = elt.nextSiblingElement("entry")) {
- // ...
-}
-//! [11]
-}
void FileContent()
{
diff --git a/src/xml/doc/snippets/code/src_xml_sax_qxml.cpp b/src/xml/doc/snippets/code/src_xml_sax_qxml.cpp
deleted file mode 100644
index f64a6b8b1b..0000000000
--- a/src/xml/doc/snippets/code/src_xml_sax_qxml.cpp
+++ /dev/null
@@ -1,6 +0,0 @@
-// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-//! [0]
-xmlReader.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
-//! [0]
diff --git a/src/xml/doc/snippets/rsslisting/handler.cpp b/src/xml/doc/snippets/rsslisting/handler.cpp
index ef2df04653..d1a4243632 100644
--- a/src/xml/doc/snippets/rsslisting/handler.cpp
+++ b/src/xml/doc/snippets/rsslisting/handler.cpp
@@ -133,7 +133,6 @@ bool Handler::characters (const QString &chars)
that parsing should stop.
*/
-//! [0]
bool Handler::fatalError (const QXmlParseException & exception)
{
qWarning() << "Fatal error on line" << exception.lineNumber()
@@ -142,4 +141,3 @@ bool Handler::fatalError (const QXmlParseException & exception)
return false;
}
-//! [0]
diff --git a/src/xml/doc/snippets/rsslisting/listing.cpp b/src/xml/doc/snippets/rsslisting/listing.cpp
index d7fd28d56c..4b85e1aabb 100644
--- a/src/xml/doc/snippets/rsslisting/listing.cpp
+++ b/src/xml/doc/snippets/rsslisting/listing.cpp
@@ -110,10 +110,8 @@ void RSSListing::fetch()
delete handler;
handler = new Handler;
-//! [0]
xmlReader.setContentHandler(handler);
xmlReader.setErrorHandler(handler);
-//! [0]
connect(handler, SIGNAL(newItem(QString&,QString&)),
this, SLOT(addItem(QString&,QString&)));
@@ -136,7 +134,6 @@ void RSSListing::fetch()
If parsing fails for any reason, we abort the fetch.
*/
-//! [1]
void RSSListing::readData(const QHttpResponseHeader &resp)
{
bool ok;
@@ -157,7 +154,6 @@ void RSSListing::readData(const QHttpResponseHeader &resp)
http.abort();
}
}
-//! [1]
/*
Finishes processing an HTTP request.