summaryrefslogtreecommitdiff
path: root/pidl
diff options
context:
space:
mode:
authorSamuel Cabrero <scabrero@suse.de>2019-11-04 19:01:28 +0100
committerAndrew Bartlett <abartlet@samba.org>2020-05-24 23:55:37 +0000
commit10cea64e4c9c1dec67278ca1b40f40ae90e58c34 (patch)
tree52e0f85809db9b973c677d6e85d0ec6730eb4753 /pidl
parent70fa7e817e48c9faa3c6c7ae3749e4a8ebf3e6c2 (diff)
downloadsamba-10cea64e4c9c1dec67278ca1b40f40ae90e58c34.tar.gz
s3: rpc_server: Remove dead code
Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'pidl')
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm38
1 files changed, 0 insertions, 38 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm
index 28d42efb588..54feea0a9ef 100644
--- a/pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm
+++ b/pidl/lib/Parse/Pidl/Samba4/NDR/ServerCompat.pm
@@ -227,48 +227,10 @@ sub boilerplate_iface($)
$self->pidl("{");
$self->indent();
$self->pidl("struct pipes_struct *p = NULL;");
- $self->pidl("struct pipe_rpc_fns *context_fns = NULL;");
- $self->pidl("bool ok = false;");
$self->pidl("");
$self->pidl("/* Retrieve pipes struct */");
$self->pidl("p = dcesrv_get_pipes_struct(context->conn);");
- $self->pidl("");
-
- $self->pidl("/* TODO check loop */");
-
- $self->pidl("/* Init pipe context */");
$self->pidl("p->pipe_bound = true;");
- $self->pidl("for (context_fns = p->contexts; context_fns != NULL; context_fns = context_fns->next) {");
- $self->indent();
- $self->pidl("if (context_fns->context_id != context->context_id) {");
- $self->indent();
- $self->pidl("continue;");
- $self->deindent();
- $self->pidl("}");
- $self->pidl("ok = ndr_syntax_id_equal(&context_fns->syntax, &iface->syntax_id);");
- $self->pidl("if (ok) {");
- $self->indent();
- $self->pidl("break;");
- $self->deindent();
- $self->pidl("}");
- $self->pidl("return NT_STATUS_UNSUCCESSFUL;");
- $self->deindent();
- $self->pidl("}");
- $self->pidl("if (context_fns == NULL) {");
- $self->indent();
- $self->pidl("context_fns = talloc_zero(p, struct pipe_rpc_fns);");
- $self->pidl("if (context_fns == NULL) {");
- $self->indent();
- $self->pidl("return NT_STATUS_NO_MEMORY;");
- $self->deindent();
- $self->pidl("}");
- $self->pidl("");
- $self->pidl("context_fns->next = context_fns->prev = NULL;");
- $self->pidl("context_fns->context_id = context->context_id;");
- $self->pidl("context_fns->syntax = iface->syntax_id;");
- $self->pidl("DLIST_ADD( p->contexts, context_fns);");
- $self->deindent();
- $self->pidl("}");
$self->pidlnoindent("#ifdef DCESRV_INTERFACE_$uname\_BIND");
$self->pidl("return DCESRV_INTERFACE_$uname\_BIND(context,iface);");
$self->pidlnoindent("#else");