]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Remove Int8GetDatum function
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 11 Mar 2026 09:46:08 +0000 (10:46 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 11 Mar 2026 09:46:08 +0000 (10:46 +0100)
We have no uses of Int8GetDatum in our tree and did not have for a
long time (or never), and the inverse does not exist either.

Author: Kirill Reshke <reshkekirill@gmail.com>
Suggested-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/CALdSSPhFyb9qLSHee73XtZm1CBWJNo9+JzFNf-zUEWCRW5yEiQ@mail.gmail.com

src/include/postgres.h

index a7a6584e762cd1987ae82cb4178d0202bc8295ae..046ba678faf601af80f8e6d0585f4d3c7643e4bc 100644 (file)
@@ -134,16 +134,6 @@ CharGetDatum(char X)
        return (Datum) X;
 }
 
-/*
- * Int8GetDatum
- *             Returns datum representation for an 8-bit integer.
- */
-static inline Datum
-Int8GetDatum(int8 X)
-{
-       return (Datum) X;
-}
-
 /*
  * DatumGetUInt8
  *             Returns 8-bit unsigned integer value of a datum.