summaryrefslogtreecommitdiff
path: root/pidl/lib/Parse/Pidl
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-09-21 10:34:30 +0200
committerStefan Metzmacher <metze@samba.org>2010-09-28 23:06:51 +0200
commitd4636c47c70d4ef5441a33cc6ef5eb469cf11bff (patch)
treeab5d1983b8bdb63d5ca4869c5e5dfbdada3c1a08 /pidl/lib/Parse/Pidl
parent7fff22c29dfb4bd424c08da53c384dcc2c37fe22 (diff)
downloadsamba-d4636c47c70d4ef5441a33cc6ef5eb469cf11bff.tar.gz
samba-d4636c47c70d4ef5441a33cc6ef5eb469cf11bff.tar.bz2
samba-d4636c47c70d4ef5441a33cc6ef5eb469cf11bff.zip
pidl:NDR/Parser: remove unused code for array element index
metze
Diffstat (limited to 'pidl/lib/Parse/Pidl')
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm6
1 files changed, 0 insertions, 6 deletions
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--;");