Skip to content

Commit d603c49

Browse files
committed
Get rid of unused getint16() function to quiet compiler.
Also, small whitespace fixup.
1 parent 841f656 commit d603c49

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

bin/pg_reorg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ typedef struct reorg_table
5252
const char *create_pktype; /* CREATE TYPE pk */
5353
const char *create_log; /* CREATE TABLE log */
5454
const char *create_trigger; /* CREATE TRIGGER z_reorg_trigger */
55-
const char *alter_table; /* ALTER TABLE ENABLE ALWAYS TRIGGER z_reorg_trigger */
55+
const char *alter_table; /* ALTER TABLE ENABLE ALWAYS TRIGGER z_reorg_trigger */
5656
const char *create_table; /* CREATE TABLE table AS SELECT */
5757
const char *drop_columns; /* ALTER TABLE DROP COLUMNs */
5858
const char *delete_log; /* DELETE FROM log */

lib/reorg.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -597,14 +597,6 @@ getoid(HeapTuple tuple, TupleDesc desc, int column)
597597
return isnull ? InvalidOid : DatumGetObjectId(datum);
598598
}
599599

600-
static int16
601-
getint16(HeapTuple tuple, TupleDesc desc, int column)
602-
{
603-
bool isnull;
604-
Datum datum = SPI_getbinval(tuple, desc, column, &isnull);
605-
return isnull ? 0 : DatumGetInt16(datum);
606-
}
607-
608600
/**
609601
* @fn Datum reorg_swap(PG_FUNCTION_ARGS)
610602
* @brief Swapping relfilenode of tables and relation ids of toast tables

0 commit comments

Comments
 (0)