From 67bc7ddbe9d42507f276381796f0be1ff01111d4 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 12 Feb 2005 19:28:23 +0000 Subject: r5360: Remove a couple of unused functions. (This used to be commit d8a0a6972156c3211001b7f98e990c167be2468c) --- source4/build/pidl/ndr.pm | 2 +- source4/build/pidl/util.pm | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) (limited to 'source4/build/pidl') diff --git a/source4/build/pidl/ndr.pm b/source4/build/pidl/ndr.pm index 2bf7f4d205..149d5f93b9 100644 --- a/source4/build/pidl/ndr.pm +++ b/source4/build/pidl/ndr.pm @@ -551,7 +551,7 @@ sub ParseElementPrintScalar($$) if (util::is_fixed_array($e)) { ParseElementPrintBuffer($e, $var_prefix); - } elsif (util::has_direct_buffers($e)) { + } elsif ($e->{POINTERS} || util::array_size($e)) { pidl "\tndr_print_ptr(ndr, \"$e->{NAME}\", $var_prefix$e->{NAME});\n"; pidl "\tndr->depth++;\n"; ParseElementPrintBuffer($e, $var_prefix); diff --git a/source4/build/pidl/util.pm b/source4/build/pidl/util.pm index f46fa76f0e..58d95eff39 100644 --- a/source4/build/pidl/util.pm +++ b/source4/build/pidl/util.pm @@ -306,16 +306,6 @@ sub array_size($) return undef; } -# determine if an element has a direct buffers component -sub has_direct_buffers($) -{ - my $e = shift; - if ($e->{POINTERS} || array_size($e)) { - return 1; - } - return 0; -} - # return 1 if the string is a C constant sub is_constant($) { -- cgit