OSDN Git Service

remove unused and internal QDBusArgument::appendVariant()
authorIvailo Monev <xakepa10@laimg.moc>
Sun, 26 Jan 2020 15:43:22 +0000 (15:43 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Sun, 26 Jan 2020 16:38:35 +0000 (16:38 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/dbus/qdbusargument.cpp
src/dbus/qdbusargument.h
src/dbus/qdbuspendingreply.h

index 6c823d5..92e2c82 100644 (file)
@@ -534,20 +534,6 @@ QDBusArgument &QDBusArgument::operator<<(const QByteArray &arg)
 
 /*!
     \internal
-    \since 4.5
-
-    Appends the variant \a v.
-
-    \sa asVariant()
-*/
-void QDBusArgument::appendVariant(const QVariant &v)
-{
-    if (QDBusArgumentPrivate::checkWrite(d))
-        d->marshaller()->appendVariantInternal(v);
-}
-
-/*!
-    \internal
     Returns the type signature of the D-Bus type this QDBusArgument
     object is currently pointing to.
 */
index 6658f0a..83f77d8 100644 (file)
@@ -96,8 +96,6 @@ public:
     void beginMapEntry();
     void endMapEntry();
 
-    void appendVariant(const QVariant &v);
-
     // used for de-marshalling (D-BUS -> Qt)
     QString currentSignature() const;
     ElementType currentType() const;
index 9d4baea..a0759f7 100644 (file)
@@ -142,7 +142,7 @@ public:
         Q_ASSERT_X(Index < count() && Index >= 0, "QDBusPendingReply::argumentAt",
                    "Index out of bounds");
         typedef typename Select<Index>::Type ResultType;
-        return qdbus_cast<ResultType>(argumentAt(Index), 0);
+        return qdbus_cast<ResultType>(argumentAt(Index));
     }
 
     inline typename Select<0>::Type value() const