aboutsummaryrefslogtreecommitdiff
path: root/qapi/qmp-input-visitor.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-02-09 09:14:00 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2012-02-21 10:21:05 +0100
commit9f9ab465a504e3b356d9f99fd740bff2870abf24 (patch)
tree4beb028db0e0e61e02470425374f861c5d838d16 /qapi/qmp-input-visitor.c
parent0f71a1e0c8d64b84edd5ac5abdce70a4fb9357a9 (diff)
downloadqemu-9f9ab465a504e3b356d9f99fd740bff2870abf24.zip
qemu-9f9ab465a504e3b356d9f99fd740bff2870abf24.tar.gz
qemu-9f9ab465a504e3b356d9f99fd740bff2870abf24.tar.bz2
qapi: drop qmp_input_end_optional
This method is optional, do not implement it if it is empty. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qapi/qmp-input-visitor.c')
-rw-r--r--qapi/qmp-input-visitor.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/qapi/qmp-input-visitor.c b/qapi/qmp-input-visitor.c
index 012cd0a..e6b6152 100644
--- a/qapi/qmp-input-visitor.c
+++ b/qapi/qmp-input-visitor.c
@@ -232,10 +232,6 @@ static void qmp_input_start_optional(Visitor *v, bool *present,
*present = true;
}
-static void qmp_input_end_optional(Visitor *v, Error **errp)
-{
-}
-
Visitor *qmp_input_get_visitor(QmpInputVisitor *v)
{
return &v->visitor;
@@ -264,7 +260,6 @@ QmpInputVisitor *qmp_input_visitor_new(QObject *obj)
v->visitor.type_str = qmp_input_type_str;
v->visitor.type_number = qmp_input_type_number;
v->visitor.start_optional = qmp_input_start_optional;
- v->visitor.end_optional = qmp_input_end_optional;
v->obj = obj;
qobject_incref(v->obj);