1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r7184: remove unused ndr_pull/push_struct_start/end() functions

metze
(This used to be commit 95d3286a32)
This commit is contained in:
Stefan Metzmacher 2005-06-02 00:57:13 +00:00 committed by Gerald (Jerry) Carter
parent 6dd757005a
commit d3dd8a4307
2 changed files with 2 additions and 44 deletions

View 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);

View 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
*/