From cad704e8368f6aba28889966a7382afc8b738928 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 4 May 2011 17:00:23 +1000 Subject: errors: Remove unused unix_to_werror() --- libcli/util/error.h | 5 ----- source3/lib/errmap_unix.c | 6 ------ source4/libcli/util/errormap.c | 5 ----- 3 files changed, 16 deletions(-) diff --git a/libcli/util/error.h b/libcli/util/error.h index 7b7de6c4f0..5a0027c2b6 100644 --- a/libcli/util/error.h +++ b/libcli/util/error.h @@ -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 */ diff --git a/source3/lib/errmap_unix.c b/source3/lib/errmap_unix.c index 1d5f4d8486..f0ae217222 100644 --- a/source3/lib/errmap_unix.c +++ b/source3/lib/errmap_unix.c @@ -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; diff --git a/source4/libcli/util/errormap.c b/source4/libcli/util/errormap.c index b06f27e120..16e0746bad 100644 --- a/source4/libcli/util/errormap.c +++ b/source4/libcli/util/errormap.c @@ -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)); -} -- cgit