summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane2011-02-22 02:41:08 +0000
committerTom Lane2011-02-22 02:41:08 +0000
commit2e852e541c84af85aa918762fc838fa44a399310 (patch)
tree1a94fa7f98303ab1b8f4358a55b2d690eda9f668 /src
parenta210be772047575331fb6b0ab7b72043f81452ba (diff)
Remove ExecRemoveJunk(), which is no longer used anywhere.
This was a leftover from the pre-8.1 design of junkfilters. It doesn't seem to have any reason to live, since it's merely a combination of two easy function calls, and not a well-designed combination at that (it encourages callers to leak the result tuple).
Diffstat (limited to 'src')
-rw-r--r--src/backend/executor/execJunk.c18
-rw-r--r--src/include/executor/executor.h1
2 files changed, 3 insertions, 16 deletions
diff --git a/src/backend/executor/execJunk.c b/src/backend/executor/execJunk.c
index 5d0174c5afe..3e995c8f07b 100644
--- a/src/backend/executor/execJunk.c
+++ b/src/backend/executor/execJunk.c
@@ -40,9 +40,9 @@
*
* Finally, when at the top level we get back a tuple, we can call
* ExecFindJunkAttribute/ExecGetJunkAttribute to retrieve the values of the
- * junk attributes we are interested in, and ExecFilterJunk or ExecRemoveJunk
- * to remove all the junk attributes from a tuple. This new "clean" tuple is
- * then printed, inserted, or updated.
+ * junk attributes we are interested in, and ExecFilterJunk to remove all the
+ * junk attributes from a tuple. This new "clean" tuple is then printed,
+ * inserted, or updated.
*
*-------------------------------------------------------------------------
*/
@@ -317,15 +317,3 @@ ExecFilterJunk(JunkFilter *junkfilter, TupleTableSlot *slot)
*/
return ExecStoreVirtualTuple(resultSlot);
}
-
-/*
- * ExecRemoveJunk
- *
- * Convenience routine to generate a physical clean tuple,
- * rather than just a virtual slot.
- */
-HeapTuple
-ExecRemoveJunk(JunkFilter *junkfilter, TupleTableSlot *slot)
-{
- return ExecCopySlotTuple(ExecFilterJunk(junkfilter, slot));
-}
diff --git a/src/include/executor/executor.h b/src/include/executor/executor.h
index 482e8d382df..018b14ac843 100644
--- a/src/include/executor/executor.h
+++ b/src/include/executor/executor.h
@@ -148,7 +148,6 @@ extern Datum ExecGetJunkAttribute(TupleTableSlot *slot, AttrNumber attno,
bool *isNull);
extern TupleTableSlot *ExecFilterJunk(JunkFilter *junkfilter,
TupleTableSlot *slot);
-extern HeapTuple ExecRemoveJunk(JunkFilter *junkfilter, TupleTableSlot *slot);
/*