From d4636c47c70d4ef5441a33cc6ef5eb469cf11bff Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 21 Sep 2010 10:34:30 +0200 Subject: pidl:NDR/Parser: remove unused code for array element index metze --- pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 6 ------ 1 file changed, 6 deletions(-) (limited to 'pidl/lib/Parse') diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index b5393613f6..c76ef6bfcd 100644 --- a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -791,9 +791,6 @@ sub ParseElementPrint($$$$$) $self->pidl("$ndr->depth++;"); $self->pidl("for ($counter=0;$counter<$length;$counter++) {"); $self->indent; - $self->pidl("char *idx_$l->{LEVEL_INDEX}=NULL;"); - $self->pidl("if (asprintf(&idx_$l->{LEVEL_INDEX}, \"[\%d]\", $counter) != -1) {"); - $self->indent; $var_name = get_array_element($var_name, $counter); } @@ -816,9 +813,6 @@ sub ParseElementPrint($$$$$) } elsif (($l->{TYPE} eq "ARRAY") and not is_charset_array($e,$l) and not has_fast_array($e,$l)) { - $self->pidl("free(idx_$l->{LEVEL_INDEX});"); - $self->deindent; - $self->pidl("}"); $self->deindent; $self->pidl("}"); $self->pidl("$ndr->depth--;"); -- cgit