From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SATT5-0003JZ-2S for qemu-devel@nongnu.org; Wed, 21 Mar 2012 17:53:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SATT3-0001WN-3U for qemu-devel@nongnu.org; Wed, 21 Mar 2012 17:53:18 -0400 Received: from roura.ac.upc.edu ([147.83.33.10]:42810 helo=roura.ac.upc.es) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SATT2-0001W0-Oz for qemu-devel@nongnu.org; Wed, 21 Mar 2012 17:53:17 -0400 From: =?utf-8?b?TGx1w61z?= Vilanova Date: Wed, 21 Mar 2012 22:52:39 +0100 Message-Id: <20120321215239.3272.92768.stgit@ginnungagap.bsc.es> In-Reply-To: <20120321215224.3272.37570.stgit@ginnungagap.bsc.es> References: <20120321215224.3272.37570.stgit@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v7 02/11] trace: [tracetool] Remove unused 'sizestr' attribute in 'Event' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: stefanha@gmail.com, harsh@linux.vnet.ibm.com, aneesh.kumar@linux.vnet.ibm.com Signed-off-by: Llu=C3=ADs Vilanova --- scripts/tracetool.py | 18 ------------------ 1 files changed, 0 insertions(+), 18 deletions(-) diff --git a/scripts/tracetool.py b/scripts/tracetool.py index 91ae351..33e3c26 100755 --- a/scripts/tracetool.py +++ b/scripts/tracetool.py @@ -89,23 +89,6 @@ def get_fmt(line, sep=3D')'): event, sep, fmt =3D line.partition(sep) return fmt.rstrip('\n') =20 -def calc_sizeofargs(line): - args =3D get_args(line) - argc =3D get_argc(line) - str =3D [] - newstr =3D "" - if argc > 0: - str =3D args.split(',') - for elem in str: - if is_string(elem): #string - type, sep, var =3D elem.rpartition('*') - newstr =3D newstr+"4 + strlen("+var.lstrip()+") + " - else: - newstr =3D newstr + '8 + ' - newstr =3D newstr + '0' # takes care of last + - return newstr - - def trace_h_begin(): print '''#ifndef TRACE_H #define TRACE_H @@ -426,7 +409,6 @@ class Event(object): self.name =3D get_name(line) self.argc =3D get_argc(line) self.argnames =3D get_argnames(line) - self.sizestr =3D calc_sizeofargs(line) self.fmt =3D get_fmt(line) self.properties =3D get_properties(line) =20