From d603c49b403bd5a4c50364059258a84da3a2cf81 Mon Sep 17 00:00:00 2001 From: Josh Kupershmidt Date: Tue, 6 Nov 2012 20:30:49 -0700 Subject: [PATCH] Get rid of unused getint16() function to quiet compiler. Also, small whitespace fixup. --- bin/pg_reorg.c | 2 +- lib/reorg.c | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/bin/pg_reorg.c b/bin/pg_reorg.c index e6e7d62..44c29d0 100755 --- a/bin/pg_reorg.c +++ b/bin/pg_reorg.c @@ -52,7 +52,7 @@ typedef struct reorg_table const char *create_pktype; /* CREATE TYPE pk */ const char *create_log; /* CREATE TABLE log */ const char *create_trigger; /* CREATE TRIGGER z_reorg_trigger */ - const char *alter_table; /* ALTER TABLE ENABLE ALWAYS TRIGGER z_reorg_trigger */ + const char *alter_table; /* ALTER TABLE ENABLE ALWAYS TRIGGER z_reorg_trigger */ const char *create_table; /* CREATE TABLE table AS SELECT */ const char *drop_columns; /* ALTER TABLE DROP COLUMNs */ const char *delete_log; /* DELETE FROM log */ diff --git a/lib/reorg.c b/lib/reorg.c index 07c401e..c47228f 100755 --- a/lib/reorg.c +++ b/lib/reorg.c @@ -597,14 +597,6 @@ getoid(HeapTuple tuple, TupleDesc desc, int column) return isnull ? InvalidOid : DatumGetObjectId(datum); } -static int16 -getint16(HeapTuple tuple, TupleDesc desc, int column) -{ - bool isnull; - Datum datum = SPI_getbinval(tuple, desc, column, &isnull); - return isnull ? 0 : DatumGetInt16(datum); -} - /** * @fn Datum reorg_swap(PG_FUNCTION_ARGS) * @brief Swapping relfilenode of tables and relation ids of toast tables