summaryrefslogtreecommitdiff
path: root/source4/build/pidl/util.pm
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-05-30 23:59:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:19 -0500
commit6bdb915e275a90f3efc3e7c7bde003fa6aeaca05 (patch)
treeecaab3e4ec7dd4d424aa94648ba4ecd9f0f177be /source4/build/pidl/util.pm
parentfe5510e453cf2b46afc143e06f893452798a6b19 (diff)
downloadsamba-6bdb915e275a90f3efc3e7c7bde003fa6aeaca05.tar.gz
samba-6bdb915e275a90f3efc3e7c7bde003fa6aeaca05.tar.bz2
samba-6bdb915e275a90f3efc3e7c7bde003fa6aeaca05.zip
r7122: Some cleanups, simplification of the code.
(This used to be commit 277f26edacccb3a3f7a90629fd6ea1f21d9f6530)
Diffstat (limited to 'source4/build/pidl/util.pm')
-rw-r--r--source4/build/pidl/util.pm47
1 files changed, 0 insertions, 47 deletions
diff --git a/source4/build/pidl/util.pm b/source4/build/pidl/util.pm
index 537714adf3..c26ab2dd04 100644
--- a/source4/build/pidl/util.pm
+++ b/source4/build/pidl/util.pm
@@ -58,7 +58,6 @@ sub FlattenHash($)
return \%b;
}
-
#####################################################################
# traverse a perl data structure removing any empty arrays or
# hashes and any hash elements that map to undef
@@ -86,7 +85,6 @@ sub CleanData($)
return $v;
}
-
#####################################################################
# return the modification time of a file
sub FileModtime($)
@@ -95,7 +93,6 @@ sub FileModtime($)
return (stat($filename))[9];
}
-
#####################################################################
# read a file into a string
sub FileLoad($)
@@ -155,20 +152,6 @@ sub SaveStructure($$)
}
#####################################################################
-# find an interface in an array of interfaces
-sub get_interface($$)
-{
- my($if) = shift;
- my($n) = shift;
-
- foreach(@{$if}) {
- if($_->{NAME} eq $n) { return $_; }
- }
-
- return 0;
-}
-
-#####################################################################
# see if a pidl property list contains a given property
sub has_property($$)
{
@@ -201,17 +184,6 @@ sub property_matches($$$)
return undef;
}
-# determine if an element is a pass-by-reference structure
-sub is_ref_struct($)
-{
- my $e = shift;
- if (!is_scalar_type($e->{TYPE}) &&
- has_property($e, "ref")) {
- return 1;
- }
- return 0;
-}
-
# return 1 if the string is a C constant
sub is_constant($)
{
@@ -232,23 +204,4 @@ sub make_str($)
return "\"" . $str . "\"";
}
-###################################
-# find a sibling var in a structure
-sub find_sibling($$)
-{
- my($e) = shift;
- my($name) = shift;
- my($fn) = $e->{PARENT};
-
- if ($name =~ /\*(.*)/) {
- $name = $1;
- }
-
- for my $e2 (@{$fn->{ELEMENTS}}) {
- return $e2 if ($e2->{NAME} eq $name);
- }
-
- return undef;
-}
-
1;