libsmb: Remove unused cli_is_dos_error()
authorVolker Lendecke <vl@samba.org>
Sat, 23 Sep 2023 02:05:38 +0000 (19:05 -0700)
committerJeremy Allison <jra@samba.org>
Mon, 25 Sep 2023 19:01:34 +0000 (19:01 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/clierror.c
source3/libsmb/proto.h

index da7170b15ba714ce2a68e9177224190a7979dbab..0a5df8b9ae35ecac825742593d07e2927f923c38 100644 (file)
@@ -105,18 +105,6 @@ bool cli_is_error(struct cli_state *cli)
        return NT_STATUS_IS_ERR(cli->raw_status);
 }
 
-/* Return true if the last error was a DOS error */
-
-bool cli_is_dos_error(struct cli_state *cli)
-{
-       /* A socket error is always a DOS error. */
-       if (!cli_state_is_connected(cli)) {
-               return true;
-       }
-
-       return cli_is_error(cli) && NT_STATUS_IS_DOS(cli->raw_status);
-}
-
 bool cli_state_is_connected(struct cli_state *cli)
 {
        if (cli == NULL) {
index 6eea11f5a7df424cb222442bdf5a6c36c489805a..6ed2be9757a0e011f859514ee722cebfd2273775 100644 (file)
@@ -221,7 +221,6 @@ NTSTATUS cli_nt_error(struct cli_state *cli);
 int cli_status_to_errno(NTSTATUS status);
 int cli_errno(struct cli_state *cli);
 bool cli_is_error(struct cli_state *cli);
-bool cli_is_dos_error(struct cli_state *cli);
 bool cli_state_is_connected(struct cli_state *cli);
 
 /* The following definitions come from libsmb/clifile.c  */