From f60b768df404ec314602be5b5f2a0ba2c5052788 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 18 Sep 2011 00:11:54 +0200 Subject: s3:smb2cli: remove unused smb2cli_negprot() metze --- source3/Makefile.in | 1 - source3/libsmb/smb2cli.h | 2 -- source3/libsmb/smb2cli_negprot.c | 30 ------------------------------ source3/wscript_build | 1 - 4 files changed, 34 deletions(-) delete mode 100644 source3/libsmb/smb2cli_negprot.c (limited to 'source3') diff --git a/source3/Makefile.in b/source3/Makefile.in index b7184a064f..8e37011b17 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -608,7 +608,6 @@ LIBSMB_OBJ = libsmb/clientgen.o libsmb/cliconnect.o libsmb/clifile.o \ ../libcli/smb/smb_seal.o \ ../libcli/smb/read_smb.o \ ../libcli/smb/smbXcli_base.o \ - libsmb/smb2cli_negprot.o \ libsmb/smb2cli_session.o \ libsmb/smb2cli_tcon.o \ libsmb/smb2cli_create.o \ diff --git a/source3/libsmb/smb2cli.h b/source3/libsmb/smb2cli.h index de87bf26da..a022c86d5b 100644 --- a/source3/libsmb/smb2cli.h +++ b/source3/libsmb/smb2cli.h @@ -24,8 +24,6 @@ struct smbXcli_conn; struct smbXcli_session; struct cli_state; -NTSTATUS smb2cli_negprot(struct cli_state *cli); - struct tevent_req *smb2cli_session_setup_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct smbXcli_conn *conn, diff --git a/source3/libsmb/smb2cli_negprot.c b/source3/libsmb/smb2cli_negprot.c deleted file mode 100644 index 0e3bcebeaa..0000000000 --- a/source3/libsmb/smb2cli_negprot.c +++ /dev/null @@ -1,30 +0,0 @@ -/* - Unix SMB/CIFS implementation. - smb2 lib - Copyright (C) Volker Lendecke 2011 - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . -*/ - -#include "includes.h" -#include "client.h" -#include "../libcli/smb/smbXcli_base.h" -#include "smb2cli.h" - -NTSTATUS smb2cli_negprot(struct cli_state *cli) -{ - return smbXcli_negprot(cli->conn, cli->timeout, - PROTOCOL_SMB2_02, PROTOCOL_SMB2_02); -} - diff --git a/source3/wscript_build b/source3/wscript_build index 034a54dd9b..43d121a8dd 100755 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -127,7 +127,6 @@ LIBSMB_SRC = '''libsmb/clientgen.c libsmb/cliconnect.c libsmb/clifile.c libsmb/clioplock.c libsmb/clirap2.c libsmb/async_smb.c libsmb/clisigning.c - libsmb/smb2cli_negprot.c libsmb/smb2cli_session.c libsmb/smb2cli_tcon.c libsmb/smb2cli_create.c -- cgit