errors: Remove unused unix_to_werror()
authorAndrew Bartlett <abartlet@samba.org>
Wed, 4 May 2011 07:00:23 +0000 (17:00 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 6 May 2011 05:51:24 +0000 (07:51 +0200)
libcli/util/error.h
source3/lib/errmap_unix.c
source4/libcli/util/errormap.c

index 7b7de6c4f0fa9125dfb746d08ef63557098460a7..5a0027c2b66777f1768d54d00fd4fa2bbcc80ff9 100644 (file)
@@ -46,11 +46,6 @@ WERROR ntstatus_to_werror(NTSTATUS error);
 *********************************************************************/
 NTSTATUS map_nt_error_from_unix(int unix_error);
 
-/*********************************************************************
-convert a Unix error code to a WERROR
-*********************************************************************/
-WERROR unix_to_werror(int unix_error);
-
 NTSTATUS nt_status_squash(NTSTATUS nt_status);
 
 #endif /* _SAMBA_ERROR_H */
index 1d5f4d848609a804d7213cfe1bcffe8a82f1abd6..f0ae217222e35ff6538d206da13fffc3172ba7a9 100644 (file)
@@ -144,12 +144,6 @@ NTSTATUS map_nt_error_from_unix(int unix_error)
        return NT_STATUS_ACCESS_DENIED;
 }
 
-/* Convert a Unix error code to a WERROR. */
-WERROR unix_to_werror(int unix_error)
-{
-       return ntstatus_to_werror(map_nt_error_from_unix(unix_error));
-}
-
 /* Return a UNIX errno from a NT status code */
 static const struct {
        NTSTATUS status;
index b06f27e120452212a406ff54dac850396248cb02..16e0746badaa206eddba33f55bba1412e762e6fa 100644 (file)
@@ -726,8 +726,3 @@ NTSTATUS map_nt_error_from_unix(int unix_error)
        return NT_STATUS_UNSUCCESSFUL;
 }
 
-/* Convert a Unix error code to WERROR */
-WERROR unix_to_werror(int unix_error)
-{
-       return ntstatus_to_werror(map_nt_error_from_unix(unix_error));
-}