From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5Ysp-0000Id-Rp for qemu-devel@nongnu.org; Thu, 18 Jun 2015 08:25:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5Yso-0007lY-Bf for qemu-devel@nongnu.org; Thu, 18 Jun 2015 08:25:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5Yso-0007lJ-6c for qemu-devel@nongnu.org; Thu, 18 Jun 2015 08:25:26 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id DEC14379E29 for ; Thu, 18 Jun 2015 12:25:25 +0000 (UTC) Received: from blackfin.pond.sub.org (ovpn-116-36.ams2.redhat.com [10.36.116.36]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t5ICPOif007541 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 18 Jun 2015 08:25:25 -0400 From: Markus Armbruster Date: Thu, 18 Jun 2015 14:25:18 +0200 Message-Id: <1434630318-22452-16-git-send-email-armbru@redhat.com> In-Reply-To: <1434630318-22452-1-git-send-email-armbru@redhat.com> References: <1434630318-22452-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PULL 15/15] qapi-types: Bury code dead since commit 6b5abc7 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake --- scripts/qapi-types.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py index 12fb2ef..d28a6b0 100644 --- a/scripts/qapi-types.py +++ b/scripts/qapi-types.py @@ -75,7 +75,6 @@ def generate_struct_fields(members): def generate_struct(expr): structname = expr.get('struct', "") - fieldname = expr.get('field', "") members = expr['data'] base = expr.get('base') @@ -98,12 +97,9 @@ struct %(name)s char qapi_dummy_field_for_empty_struct; ''') - if len(fieldname): - fieldname = " " + fieldname ret += mcgen(''' -}%(field)s; -''', - field=fieldname) +}; +''') return ret -- 1.9.3