]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
warnless: remove curlx_ultosi
authorDaniel Stenberg <daniel@haxx.se>
Tue, 26 Jan 2021 08:26:48 +0000 (09:26 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 26 Jan 2021 15:30:29 +0000 (16:30 +0100)
... not used anywhere

Closes #6530

lib/warnless.c

index 908ee6cb70abb340e3abe2075dd8f72878b654a3..c0764c42d0b283a58318bd6d11957402dbe5a540 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -155,25 +155,6 @@ unsigned char curlx_ultouc(unsigned long ulnum)
 #endif
 }
 
-/*
-** unsigned long to signed int
-*/
-
-int curlx_ultosi(unsigned long ulnum)
-{
-#ifdef __INTEL_COMPILER
-#  pragma warning(push)
-#  pragma warning(disable:810) /* conversion may lose significant bits */
-#endif
-
-  DEBUGASSERT(ulnum <= (unsigned long) CURL_MASK_SINT);
-  return (int)(ulnum & (unsigned long) CURL_MASK_SINT);
-
-#ifdef __INTEL_COMPILER
-#  pragma warning(pop)
-#endif
-}
-
 /*
 ** unsigned size_t to signed curl_off_t
 */