summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arrayfuncs.c
diff options
context:
space:
mode:
authorPavan Deolasee2015-11-13 13:21:09 +0000
committerPavan Deolasee2015-11-13 13:26:40 +0000
commit20a773eecf419c605be78e06527a195e48b05dce (patch)
tree9d81648b7c354267f0023e4b42d8206b78ae48fd /src/backend/utils/adt/arrayfuncs.c
parentcb6766e3a690b9cf445b6230f2d82fc8bc87fcf6 (diff)
Remove a lot of XC-specific code from the repo.
Per discussion on the developer list, this patch removes a bulk of XC-specific code which is not relevant in XL. This code was mostly left-over in #ifdef blocks, thus complicating code-reading, bug fixes and merges. One can always do a "git diff" with the XC code base to see the exact differences. We still continue to use #ifdef PGXC and #ifdef XCP interchangeably because of the way code was written. Something we should change. Also, there is probably still some more dead code (because files were copied to different place or because the code is not referenced in XL). This requires another cleanup patch, but not something I plan to do immediately
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
-rw-r--r--src/backend/utils/adt/arrayfuncs.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/backend/utils/adt/arrayfuncs.c b/src/backend/utils/adt/arrayfuncs.c
index b49ff0ab18..77f7fbe4c1 100644
--- a/src/backend/utils/adt/arrayfuncs.c
+++ b/src/backend/utils/adt/arrayfuncs.c
@@ -269,20 +269,6 @@ array_in(PG_FUNCTION_ARGS)
typdelim = my_extra->typdelim;
typioparam = my_extra->typioparam;
-#ifndef XCP
- /* Make a modifiable copy of the input */
- string_save = pstrdup(string);
-
- /*
- * If the input string starts with dimension info, read and use that.
- * Otherwise, we require the input to be in curly-brace style, and we
- * prescan the input to determine dimensions.
- *
- * Dimension info takes the form of one or more [n] or [m:n] items. The
- * outer loop iterates once per dimension item.
- */
- p = string_save;
-#endif
ndim = 0;
for (;;)
{