From 1b6f632a35f8715f8c64e7930adebc7f1d292074 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 4 Feb 2023 07:56:09 +0100 Subject: [PATCH] Remove unused code related to unknown type These are leftovers obsoleted by cfd9be939e9c516243c5b6a49ad1e1a9a38f1052. Reviewed-by: Tom Lane Discussion: https://www.postgresql.org/message-id/flat/e7887965-9e70-fd01-c2d1-5bc02f9169aa%40enterprisedb.com --- src/backend/utils/adt/varlena.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/backend/utils/adt/varlena.c b/src/backend/utils/adt/varlena.c index fd81c47474..170b3a3820 100644 --- a/src/backend/utils/adt/varlena.c +++ b/src/backend/utils/adt/varlena.c @@ -45,7 +45,6 @@ /* GUC variable */ int bytea_output = BYTEA_OUTPUT_HEX; -typedef struct varlena unknown; typedef struct varlena VarString; /* @@ -112,12 +111,6 @@ typedef struct */ #define TEXTBUFLEN 1024 -#define DatumGetUnknownP(X) ((unknown *) PG_DETOAST_DATUM(X)) -#define DatumGetUnknownPCopy(X) ((unknown *) PG_DETOAST_DATUM_COPY(X)) -#define PG_GETARG_UNKNOWN_P(n) DatumGetUnknownP(PG_GETARG_DATUM(n)) -#define PG_GETARG_UNKNOWN_P_COPY(n) DatumGetUnknownPCopy(PG_GETARG_DATUM(n)) -#define PG_RETURN_UNKNOWN_P(x) PG_RETURN_POINTER(x) - #define DatumGetVarStringP(X) ((VarString *) PG_DETOAST_DATUM(X)) #define DatumGetVarStringPP(X) ((VarString *) PG_DETOAST_DATUM_PACKED(X))