diff options
author | Neil Conway <neilc@samurai.com> | 2005-03-31 02:02:52 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2005-03-31 02:02:52 +0000 |
commit | aeb502346b73153992f491f638d084b7b506dde6 (patch) | |
tree | 4c25b70c84b1dc46ceb6b51628ac9dd3cc3b035d /src/backend/executor/nodeHash.c | |
parent | e1b398c6f57d4aec1f67f8fa137a46752ebbd813 (diff) | |
download | postgresql-aeb502346b73153992f491f638d084b7b506dde6.tar.gz postgresql-aeb502346b73153992f491f638d084b7b506dde6.zip |
Minor code cleanup: ExecHash() was returning a null TupleTableSlot, and an
old comment in the code claimed that this was necessary. Since it is not
actually necessary any more, it is clearer to remove the comment and
just return NULL instead -- the return value of ExecHash() is not used.
Diffstat (limited to 'src/backend/executor/nodeHash.c')
-rw-r--r-- | src/backend/executor/nodeHash.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/backend/executor/nodeHash.c b/src/backend/executor/nodeHash.c index daf24c3d5ab..97e6738bd32 100644 --- a/src/backend/executor/nodeHash.c +++ b/src/backend/executor/nodeHash.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/executor/nodeHash.c,v 1.91 2005/03/16 21:38:07 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/executor/nodeHash.c,v 1.92 2005/03/31 02:02:52 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -54,7 +54,6 @@ ExecHash(HashState *node) * get state info from node */ outerNode = outerPlanState(node); - hashtable = node->hashtable; /* @@ -78,11 +77,8 @@ ExecHash(HashState *node) ExecHashTableInsert(hashtable, ExecFetchSlotTuple(slot), hashvalue); } - /* - * Return the slot so that we have the tuple descriptor when we need - * to save/restore them. -Jeff 11 July 1991 (XXX isn't this dead code?) - */ - return slot; + /* We needn't return a tuple slot or anything else */ + return NULL; } /* ---------------------------------------------------------------- |