From 57fe5960b533bf6ea0ee3760a1007ac102d6b7db Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 9 Jul 2003 05:17:49 +0000 Subject: [PATCH] remove unused code --- lib/isc/win32/errno2result.c | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/lib/isc/win32/errno2result.c b/lib/isc/win32/errno2result.c index 22080603f7..6511f93bfe 100644 --- a/lib/isc/win32/errno2result.c +++ b/lib/isc/win32/errno2result.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: errno2result.c,v 1.4.2.3 2003/07/09 05:11:08 marka Exp $ */ +/* $Id: errno2result.c,v 1.4.2.4 2003/07/09 05:17:49 marka Exp $ */ #include @@ -71,27 +71,3 @@ isc__errno2result(int posixerrno) { return (ISC_R_UNEXPECTED); } } - -char * __cdecl -NTstrMessage(int err) { - char *retmsg = NULL; - - /* Copy the error value first in case of other errors */ - DWORD errval = err; - - /* Get the Winsock2 error messages */ - if (errval >= WSABASEERR && errval <= (WSABASEERR + 1015)) { - retmsg = GetWSAErrorMessage(errval); - if (retmsg != NULL) - return (retmsg); - } - /* - * If it's not one of the standard Unix error codes, - * try a system error message - */ - if (errval > (DWORD) _sys_nerr) { - return (FormatError(errval)); - } else { - return (strerror(errval)); - } -}