1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

pidl:NDR/Parser: remove unused code for array element index

metze
This commit is contained in:
Stefan Metzmacher 2010-09-21 10:34:30 +02:00
parent 7fff22c29d
commit d4636c47c7

View File

@ -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--;");