summaryrefslogtreecommitdiff
path: root/lib/curl_endian.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-06-19 23:21:16 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-06-20 23:38:32 +0200
commit4331c6dcebb30eb811b8075c3e523e4471024d4f (patch)
treebb21234e28d9e593609a4870fe6ae744e4d9d539 /lib/curl_endian.c
parenta6da29686729eb50e92c14c9e74857526ebc3da5 (diff)
downloadcurl-4331c6dcebb30eb811b8075c3e523e4471024d4f.tar.gz
curl_endian: remove the unused Curl_write64_le function
The last usage was removed in cca455a36 Closes #7280
Diffstat (limited to 'lib/curl_endian.c')
-rw-r--r--lib/curl_endian.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/lib/curl_endian.c b/lib/curl_endian.c
index b6f107e10..ecde74bfb 100644
--- a/lib/curl_endian.c
+++ b/lib/curl_endian.c
@@ -80,45 +80,3 @@ unsigned short Curl_read16_be(const unsigned char *buf)
return (unsigned short)(((unsigned short)buf[0] << 8) |
((unsigned short)buf[1]));
}
-
-#if (SIZEOF_CURL_OFF_T > 4)
-/*
- * write32_le()
- *
- * This function converts a 32-bit integer from the native endian format,
- * to little endian format ready for sending down the wire.
- *
- * Parameters:
- *
- * value [in] - The 32-bit integer value.
- * buffer [in] - A pointer to the output buffer.
- */
-static void write32_le(const int value, unsigned char *buffer)
-{
- buffer[0] = (char)(value & 0x000000FF);
- buffer[1] = (char)((value & 0x0000FF00) >> 8);
- buffer[2] = (char)((value & 0x00FF0000) >> 16);
- buffer[3] = (char)((value & 0xFF000000) >> 24);
-}
-
-/*
- * Curl_write64_le()
- *
- * This function converts a 64-bit integer from the native endian format,
- * to little endian format ready for sending down the wire.
- *
- * Parameters:
- *
- * value [in] - The 64-bit integer value.
- * buffer [in] - A pointer to the output buffer.
- */
-#if defined(HAVE_LONGLONG)
-void Curl_write64_le(const long long value, unsigned char *buffer)
-#else
-void Curl_write64_le(const __int64 value, unsigned char *buffer)
-#endif
-{
- write32_le((int)value, buffer);
- write32_le((int)(value >> 32), buffer + 4);
-}
-#endif /* SIZEOF_CURL_OFF_T > 4 */