Commit 048abb7b authored by Markus Armbruster's avatar Markus Armbruster
Browse files

qapi: Drop unused non-strict qobject input visitor



The split between tests/test-qobject-input-visitor.c and
tests/test-qobject-input-strict.c now makes less sense than ever.  The
next commit will take care of that.

Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Message-Id: <1488544368-30622-20-git-send-email-armbru@redhat.com>
parent ec95f614
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -278,7 +278,7 @@ static SocketAddress *nbd_config(BDRVNBDState *s, QDict *options, Error **errp)
        goto done;
    }

    iv = qobject_input_visitor_new(crumpled_addr, true);
    iv = qobject_input_visitor_new(crumpled_addr);
    visit_type_SocketAddress(iv, NULL, &saddr, &local_err);
    if (local_err) {
        error_propagate(errp, local_err);
+1 −1
Original line number Diff line number Diff line
@@ -474,7 +474,7 @@ static NFSServer *nfs_config(QDict *options, Error **errp)
        goto out;
    }

    iv = qobject_input_visitor_new(crumpled_addr, true);
    iv = qobject_input_visitor_new(crumpled_addr);
    visit_type_NFSServer(iv, NULL, &server, &local_error);
    if (local_error) {
        error_propagate(errp, local_error);
+1 −1
Original line number Diff line number Diff line
@@ -601,7 +601,7 @@ static InetSocketAddress *ssh_config(QDict *options, Error **errp)
        goto out;
    }

    iv = qobject_input_visitor_new(crumpled_addr, true);
    iv = qobject_input_visitor_new(crumpled_addr);
    visit_type_InetSocketAddress(iv, NULL, &inet, &local_error);
    if (local_error) {
        error_propagate(errp, local_error);
+1 −1
Original line number Diff line number Diff line
@@ -1138,7 +1138,7 @@ Example:
        Visitor *v;
        UserDefOneList *arg1 = NULL;

        v = qobject_input_visitor_new(QOBJECT(args), true);
        v = qobject_input_visitor_new(QOBJECT(args));
        visit_start_struct(v, NULL, NULL, 0, &err);
        if (err) {
            goto out;
+1 −4
Original line number Diff line number Diff line
@@ -21,10 +21,7 @@ typedef struct QObjectInputVisitor QObjectInputVisitor;

/*
 * Return a new input visitor that converts a QObject to a QAPI object.
 *
 * Set @strict to reject a parse that doesn't consume all keys of a
 * dictionary; otherwise excess input is ignored.
 */
Visitor *qobject_input_visitor_new(QObject *obj, bool strict);
Visitor *qobject_input_visitor_new(QObject *obj);

#endif
Loading