From 6551ec5cfdc823c2dd316ff8b7d694094c68b04f Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 9 Dec 2022 23:55:50 +0100 Subject: [PATCH] QXmlStreamWriter: remove unused [[maybe_unused]] Q_ASSERT() already ensures its argument gets compiled even with QT_NO_DEBUG, but then skipped as dead code. Task-number: QTBUG-103302 Change-Id: I6614b23967e2bb506e52f1493526564a0b5955be Reviewed-by: Mate Barany Reviewed-by: Fabian Kosmale --- src/corelib/serialization/qxmlstream.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/corelib/serialization/qxmlstream.cpp b/src/corelib/serialization/qxmlstream.cpp index 16c234b3cd..8150a0e0a6 100644 --- a/src/corelib/serialization/qxmlstream.cpp +++ b/src/corelib/serialization/qxmlstream.cpp @@ -64,21 +64,18 @@ auto transform(QUtf8StringView haystack, char needle) return R{haystack, needle}; } -[[maybe_unused]] auto transform(QLatin1StringView haystack, QLatin1StringView needle) { struct R { QLatin1StringView haystack; QLatin1StringView needle; }; return R{haystack, needle}; } -[[maybe_unused]] auto transform(QStringView haystack, QLatin1StringView needle) { struct R { QStringView haystack; QLatin1StringView needle; }; return R{haystack, needle}; } -[[maybe_unused]] auto transform(QUtf8StringView haystack, QLatin1StringView needle) { struct R { QLatin1StringView haystack; QLatin1StringView needle; };