Commit fba60e57 authored by Robert Haas's avatar Robert Haas

Remove set-but-not-used variables.

Reported by both Peter Eisentraunt and Kevin Grittner.
parent ad9fad7b
...@@ -121,7 +121,6 @@ tqueueReceiveSlot(TupleTableSlot *slot, DestReceiver *self) ...@@ -121,7 +121,6 @@ tqueueReceiveSlot(TupleTableSlot *slot, DestReceiver *self)
TQueueDestReceiver *tqueue = (TQueueDestReceiver *) self; TQueueDestReceiver *tqueue = (TQueueDestReceiver *) self;
TupleDesc tupledesc = slot->tts_tupleDescriptor; TupleDesc tupledesc = slot->tts_tupleDescriptor;
HeapTuple tuple; HeapTuple tuple;
HeapTupleHeader tup;
/* /*
* Test to see whether the tupledesc has changed; if so, set up for the * Test to see whether the tupledesc has changed; if so, set up for the
...@@ -140,7 +139,6 @@ tqueueReceiveSlot(TupleTableSlot *slot, DestReceiver *self) ...@@ -140,7 +139,6 @@ tqueueReceiveSlot(TupleTableSlot *slot, DestReceiver *self)
} }
tuple = ExecMaterializeSlot(slot); tuple = ExecMaterializeSlot(slot);
tup = tuple->t_data;
/* /*
* When, because of the types being transmitted, no record typemod mapping * When, because of the types being transmitted, no record typemod mapping
...@@ -609,7 +607,6 @@ TupleQueueRemapTuple(TupleQueueReader *reader, TupleDesc tupledesc, ...@@ -609,7 +607,6 @@ TupleQueueRemapTuple(TupleQueueReader *reader, TupleDesc tupledesc,
{ {
Datum *values; Datum *values;
bool *isnull; bool *isnull;
bool dirty = false;
int i; int i;
/* /*
...@@ -631,7 +628,6 @@ TupleQueueRemapTuple(TupleQueueReader *reader, TupleDesc tupledesc, ...@@ -631,7 +628,6 @@ TupleQueueRemapTuple(TupleQueueReader *reader, TupleDesc tupledesc,
if (isnull[i] || remapinfo->mapping[i] == TQUEUE_REMAP_NONE) if (isnull[i] || remapinfo->mapping[i] == TQUEUE_REMAP_NONE)
continue; continue;
values[i] = TupleQueueRemap(reader, remapinfo->mapping[i], values[i]); values[i] = TupleQueueRemap(reader, remapinfo->mapping[i], values[i]);
dirty = true;
} }
/* Reform the modified tuple. */ /* Reform the modified tuple. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment