diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-10 17:56:10 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-08-12 14:31:18 +0200 |
commit | db89fdac7329d02bf08f705443b62369bb23081e (patch) | |
tree | d87fd64812e7fdda2bb8b9b20622f2b50e8362ee | |
parent | 7eef08cc63ed231b54dd2a5936579ffc60a0c087 (diff) | |
download | samba-db89fdac7329d02bf08f705443b62369bb23081e.tar.gz samba-db89fdac7329d02bf08f705443b62369bb23081e.tar.bz2 samba-db89fdac7329d02bf08f705443b62369bb23081e.zip |
pidl:Samba4/NDR/Client: remove old dcerpc_pipe based sync stubs
They're unused in Samba and only used by OpenChange.
I'll add a compat functions for OpenChange later.
metze
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm index 81f8477770..65d5dd00f0 100644 --- a/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm +++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm @@ -74,46 +74,6 @@ sub ParseFunctionOldRecv($$$) $res .= "}\n\n"; } -sub ParseFunctionSync($$$) -{ - my ($interface, $fn, $name) = @_; - my $uname = uc $name; - - if (has_property($fn, "todo")) { - return; - } - - my $proto = "NTSTATUS dcerpc_$name(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct $name *r)"; - - $res_hdr .= "\n$proto;\n"; - $res .= "$proto\n{\n"; - - $res .= " - NTSTATUS status; - - if (p->conn->flags & DCERPC_DEBUG_PRINT_IN) { - NDR_PRINT_IN_DEBUG($name, r); - } - - status = dcerpc_ndr_request(p, NULL, &ndr_table_$interface->{NAME}, - NDR_$uname, mem_ctx, r); - - if (NT_STATUS_IS_OK(status) && (p->conn->flags & DCERPC_DEBUG_PRINT_OUT)) { - NDR_PRINT_OUT_DEBUG($name, r); - } -"; - - if (defined($fn->{RETURN_TYPE}) and $fn->{RETURN_TYPE} eq "NTSTATUS") { - $res .= "\tif (NT_STATUS_IS_OK(status)) status = r->out.result;\n"; - } - $res .= -" - return status; -"; - - $res .= "}\n\n"; -} - sub ParseFunction_r_State($$$) { my ($interface, $fn, $name) = @_; @@ -314,8 +274,6 @@ sub ParseFunction($$) { my ($interface, $fn) = @_; - ParseFunctionSync($interface, $fn, $fn->{NAME}); - ParseFunctionOldSend($interface, $fn, $fn->{NAME}); ParseFunctionOldRecv($interface, $fn, $fn->{NAME}); ParseFunction_r_State($interface, $fn, $fn->{NAME}); |