r7184: remove unused ndr_pull/push_struct_start/end() functions
authorStefan Metzmacher <metze@samba.org>
Thu, 2 Jun 2005 00:57:13 +0000 (00:57 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:17:24 +0000 (13:17 -0500)
metze
(This used to be commit 95d3286a327467c32ee25fcac913fc5f3113a74b)

source4/build/pidl/ndr_parser.pm
source4/librpc/ndr/ndr.c

index 3e3fe89e8248a1967a9e407173d7cd26d39a300b..d09f43186a9ca9279946273149d58d1b38c96f99 100644 (file)
@@ -1105,8 +1105,6 @@ sub ParseStructPush($$)
        pidl "if (ndr_flags & NDR_SCALARS) {";
        indent;
 
-       pidl "NDR_CHECK(ndr_push_struct_start(ndr));";
-
        pidl "NDR_CHECK(ndr_push_align(ndr, $struct->{ALIGN}));";
 
        foreach my $e (@{$struct->{ELEMENTS}}) {
@@ -1122,8 +1120,6 @@ sub ParseStructPush($$)
                ParseElementPush($e, "ndr", "r->", $env, 0, 1);
        }
 
-       pidl "ndr_push_struct_end(ndr);";
-
        deindent;
        pidl "}";
 
@@ -1405,8 +1401,6 @@ sub ParseStructPull($$)
        pidl "if (ndr_flags & NDR_SCALARS) {";
        indent;
 
-       pidl "NDR_CHECK(ndr_pull_struct_start(ndr));";
-
        if (defined $conform_e) {
                ParseArrayPullPreceding($conform_e, $conform_e->{LEVELS}[0], "r->$conform_e->{NAME}");
        }
@@ -1425,8 +1419,6 @@ sub ParseStructPull($$)
                ParseElementPull($e, "ndr", "r->", $env, 0, 1);
        }
 
-       pidl "ndr_pull_struct_end(ndr);";
-
        deindent;
        pidl "}";
 
@@ -1517,8 +1509,6 @@ sub ParseUnionPush($$)
                pidl "NDR_CHECK(ndr_push_$e->{SWITCH_TYPE}(ndr, NDR_SCALARS, level));";
        }
 
-       pidl "NDR_CHECK(ndr_push_struct_start(ndr));";
-
 #      my $align = union_alignment($e);
 #      pidl "NDR_CHECK(ndr_push_align(ndr, $align));";
 
@@ -1567,7 +1557,7 @@ sub ParseUnionPush($$)
        }
        deindent;
        pidl "}";
-       pidl "ndr_push_struct_end(ndr);";
+
        deindent;
        pidl "}";
        end_flags($e);
@@ -1646,8 +1636,6 @@ sub ParseUnionPull($$)
                pidl "}";
        }
 
-       pidl "NDR_CHECK(ndr_pull_struct_start(ndr));";
-
 #      my $align = union_alignment($e);
 #      pidl "\tNDR_CHECK(ndr_pull_align(ndr, $align));\n";
 
@@ -1697,7 +1685,7 @@ sub ParseUnionPull($$)
        }
        deindent;
        pidl "}";
-       pidl "ndr_pull_struct_end(ndr);";
+
        deindent;
        pidl "}";
        end_flags($e);
index 237b64d4eb503f04778ffb992179917c8ad28955..4137a997f025f46710451fbe9328458ce8d7879c 100644 (file)
@@ -406,36 +406,6 @@ NTSTATUS ndr_push_subcontext_header(struct ndr_push *ndr,
        return NT_STATUS_OK;
 }
 
-/*
-  mark the start of a structure
-*/
-NTSTATUS ndr_pull_struct_start(struct ndr_pull *ndr)
-{
-       return NT_STATUS_OK;
-}
-
-/*
-  mark the end of a structure
-*/
-void ndr_pull_struct_end(struct ndr_pull *ndr)
-{
-}
-
-/*
-  mark the start of a structure
-*/
-NTSTATUS ndr_push_struct_start(struct ndr_push *ndr)
-{
-       return NT_STATUS_OK;
-}
-
-/*
-  mark the end of a structure
-*/
-void ndr_push_struct_end(struct ndr_push *ndr)
-{
-}
-
 /*
   store a token in the ndr context, for later retrieval
 */