git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ad9fad7)
Remove set-but-not-used variables.
Sun, 8 Nov 2015 01:25:32 +0000 (20:25 -0500)
Sun, 8 Nov 2015 01:25:32 +0000 (20:25 -0500)
Reported by both Peter Eisentraunt and Kevin Grittner.


diff --git a/src/backend/executor/tqueue.c b/src/backend/executor/tqueue.c
index 206894df1bd5c5823873f49c765b7bca82475f7c..7699d98ac6572d286186b9a58588547b9ca858ab 100644 (file)
--- a/src/backend/executor/tqueue.c
+++ b/src/backend/executor/tqueue.c
@@ -121,7 +121,6 @@ tqueueReceiveSlot(TupleTableSlot *slot, DestReceiver *self)
TQueueDestReceiver *tqueue = (TQueueDestReceiver *) self;
TupleDesc tupledesc = slot->tts_tupleDescriptor;
HeapTuple tuple;
- HeapTupleHeader tup;
/*
* Test to see whether the tupledesc has changed; if so, set up for the
@@ -140,7 +139,6 @@ tqueueReceiveSlot(TupleTableSlot *slot, DestReceiver *self)
}
tuple = ExecMaterializeSlot(slot);
- tup = tuple->t_data;
/*
* When, because of the types being transmitted, no record typemod mapping
@@ -609,7 +607,6 @@ TupleQueueRemapTuple(TupleQueueReader *reader, TupleDesc tupledesc,
{
Datum *values;
bool *isnull;
- bool dirty = false;
int i;
/*
@@ -631,7 +628,6 @@ TupleQueueRemapTuple(TupleQueueReader *reader, TupleDesc tupledesc,
if (isnull[i] || remapinfo->mapping[i] == TQUEUE_REMAP_NONE)
continue;
values[i] = TupleQueueRemap(reader, remapinfo->mapping[i], values[i]);
- dirty = true;
}
/* Reform the modified tuple. */
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /