s3: Remove unused cli_set_nt_error
authorVolker Lendecke <vl@samba.org>
Mon, 23 May 2011 10:25:32 +0000 (12:25 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 23 May 2011 13:45:37 +0000 (15:45 +0200)
source3/libsmb/clierror.c
source3/libsmb/proto.h

index 3853490493183843ede9158c459f3653090b2a75..e027624de7a5a04bfd79536862b189595945f622 100644 (file)
@@ -340,15 +340,6 @@ NTSTATUS cli_get_nt_error(struct cli_state *cli)
        }
 }
 
-/* Push an error code into the inbuf to be returned on the next
- * query. */
-
-void cli_set_nt_error(struct cli_state *cli, NTSTATUS status)
-{
-       SSVAL(cli->inbuf,smb_flg2, SVAL(cli->inbuf,smb_flg2)|FLAGS2_32_BIT_ERROR_CODES);
-       SIVAL(cli->inbuf, smb_rcls, NT_STATUS_V(status));
-}
-
 bool cli_state_is_connected(struct cli_state *cli)
 {
        if (cli == NULL) {
index a2931592c9bef1039c108e05361b94d59e677f2f..c7e3bc7bcd641458a68bfb03e2ec62518cc8d319 100644 (file)
@@ -191,7 +191,6 @@ bool cli_is_error(struct cli_state *cli);
 bool cli_is_nt_error(struct cli_state *cli);
 bool cli_is_dos_error(struct cli_state *cli);
 NTSTATUS cli_get_nt_error(struct cli_state *cli);
-void cli_set_nt_error(struct cli_state *cli, NTSTATUS status);
 bool cli_state_is_connected(struct cli_state *cli);
 
 /* The following definitions come from libsmb/clifile.c  */