libtiff: Remove _TIFFUInt64ToFloat() and _TIFFUInt64ToDouble()

From 19af4e4ab5f7828583c44718fdbb1a13d119f543 Mon Sep 17 00:00:00 2001
From: Even Rouault <[EMAIL REDACTED]>
Date: Mon, 8 Jan 2024 12:20:39 +0100
Subject: [PATCH] Remove _TIFFUInt64ToFloat() and _TIFFUInt64ToDouble()

---
 libtiff/tif_aux.c | 47 -----------------------------------------------
 libtiff/tiffiop.h |  3 ---
 2 files changed, 50 deletions(-)

diff --git a/libtiff/tif_aux.c b/libtiff/tif_aux.c
index 49855bb0..e9606a42 100644
--- a/libtiff/tif_aux.c
+++ b/libtiff/tif_aux.c
@@ -385,53 +385,6 @@ int TIFFGetFieldDefaulted(TIFF *tif, uint32_t tag, ...)
     return (ok);
 }
 
-struct _Int64Parts
-{
-    int32_t low, high;
-};
-
-typedef union
-{
-    struct _Int64Parts part;
-    int64_t value;
-} _Int64;
-
-float _TIFFUInt64ToFloat(uint64_t ui64)
-{
-    _Int64 i;
-
-    i.value = ui64;
-    if (i.part.high >= 0)
-    {
-        return (float)i.value;
-    }
-    else
-    {
-        long double df;
-        df = (long double)i.value;
-        df += 18446744073709551616.0; /* adding 2**64 */
-        return (float)df;
-    }
-}
-
-double _TIFFUInt64ToDouble(uint64_t ui64)
-{
-    _Int64 i;
-
-    i.value = ui64;
-    if (i.part.high >= 0)
-    {
-        return (double)i.value;
-    }
-    else
-    {
-        long double df;
-        df = (long double)i.value;
-        df += 18446744073709551616.0; /* adding 2**64 */
-        return (double)df;
-    }
-}
-
 float _TIFFClampDoubleToFloat(double val)
 {
     if (val > FLT_MAX)
diff --git a/libtiff/tiffiop.h b/libtiff/tiffiop.h
index 7f25ae14..08ba0dfe 100644
--- a/libtiff/tiffiop.h
+++ b/libtiff/tiffiop.h
@@ -440,9 +440,6 @@ extern "C"
     extern void *_TIFFCheckRealloc(TIFF *, void *, tmsize_t, tmsize_t,
                                    const char *);
 
-    extern double _TIFFUInt64ToDouble(uint64_t);
-    extern float _TIFFUInt64ToFloat(uint64_t);
-
     extern float _TIFFClampDoubleToFloat(double);
     extern uint32_t _TIFFClampDoubleToUInt32(double);