aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-02-27 11:09:39 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-02-28 16:52:41 +0100
commit74b307f443efae86d20eeb3ac3a192b4583d5ead (patch)
tree0d3ce44bfbf8f776c3536f0cf73b40cc2c0a8e36
parent6d17bd91312bc1b37d7d591f849f733bb16e1cda (diff)
Remove QDebug operator<<(QDebug debug, QAnyStringView asv)
It has been added in Qt 6.7. Task-number: PYSIDE-2497 Change-Id: I48b9d8ebac9b13acb0f589590fca0b406e1852a8 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
-rw-r--r--sources/shiboken6/ApiExtractor/anystringview_helpers.cpp9
-rw-r--r--sources/shiboken6/ApiExtractor/anystringview_helpers.h1
2 files changed, 0 insertions, 10 deletions
diff --git a/sources/shiboken6/ApiExtractor/anystringview_helpers.cpp b/sources/shiboken6/ApiExtractor/anystringview_helpers.cpp
index d2e33e9c7..35d2d535a 100644
--- a/sources/shiboken6/ApiExtractor/anystringview_helpers.cpp
+++ b/sources/shiboken6/ApiExtractor/anystringview_helpers.cpp
@@ -16,15 +16,6 @@ QTextStream &operator<<(QTextStream &str, QAnyStringView asv)
return str;
}
-QDebug operator<<(QDebug debug, QAnyStringView asv)
-{
- QDebugStateSaver saver(debug);
- debug.noquote();
- debug.nospace();
- asv.visit([&debug](auto s) { debug << s; });
- return debug;
-}
-
static bool asv_containsImpl(QLatin1StringView v, char c)
{
return v.contains(uint16_t(c));
diff --git a/sources/shiboken6/ApiExtractor/anystringview_helpers.h b/sources/shiboken6/ApiExtractor/anystringview_helpers.h
index ae6ee34bf..e1e6ab7f0 100644
--- a/sources/shiboken6/ApiExtractor/anystringview_helpers.h
+++ b/sources/shiboken6/ApiExtractor/anystringview_helpers.h
@@ -11,7 +11,6 @@ QT_FORWARD_DECLARE_CLASS(QTextStream)
QT_FORWARD_DECLARE_CLASS(QDebug)
QTextStream &operator<<(QTextStream &str, QAnyStringView asv);
-QDebug operator<<(QDebug debug, QAnyStringView asv);
bool asv_contains(QAnyStringView asv, char needle);
bool asv_contains(QAnyStringView asv, const char *needle);