Remove unused idx functions
authorPeter Geoghegan <[email protected]>
Thu, 6 Mar 2014 07:07:02 +0000 (23:07 -0800)
committerPeter Geoghegan <[email protected]>
Thu, 6 Mar 2014 07:07:02 +0000 (23:07 -0800)
src/backend/utils/adt/jsonb_op.c
src/include/utils/jsonb.h

index 27c6b10bf4731f63cdd7d2b6e1360e2733f9dabf..438588c4c621595e680f065e8f096ccc599a8342 100644 (file)
@@ -236,28 +236,6 @@ jsonb_exists(PG_FUNCTION_ARGS)
    PG_RETURN_BOOL(v != NULL);
 }
 
-Datum
-jsonb_exists_idx(PG_FUNCTION_ARGS)
-{
-   Jsonb       *hs = PG_GETARG_JSONB(0);
-   int         ith = PG_GETARG_INT32(1);
-   JsonbValue  *v = NULL;
-
-   if (!JB_ISEMPTY(hs))
-       v = getJsonbValue(VARDATA(hs), JB_FLAG_OBJECT | JB_FLAG_ARRAY, ith);
-
-   PG_RETURN_BOOL(v != NULL);
-}
-
-Datum
-jsonb_exists_path(PG_FUNCTION_ARGS)
-{
-   Jsonb       *hs = PG_GETARG_JSONB(0);
-   ArrayType   *path = PG_GETARG_ARRAYTYPE_P(1);
-
-   PG_RETURN_BOOL(JsonbDeepFetch(hs, path) != NULL);
-}
-
 Datum
 jsonb_exists_any(PG_FUNCTION_ARGS)
 {
@@ -651,7 +629,7 @@ jsonb_le(PG_FUNCTION_ARGS)
    PG_RETURN_BOOL(res <= 0);
 }
 
-
+/* Hash operator class hashing function */
 Datum
 jsonb_hash(PG_FUNCTION_ARGS)
 {
index 80a47a8953aad9de57bec38543ed4cba842d46af..679e4549b0c2c9e6619445a8bfd4e673fd7226c7 100644 (file)
@@ -232,8 +232,6 @@ extern void JsonbPutEscapedValue(StringInfo out, JsonbValue *v);
 
 /* Indexing-related ops */
 extern Datum jsonb_exists(PG_FUNCTION_ARGS);
-extern Datum jsonb_exists_idx(PG_FUNCTION_ARGS);
-extern Datum jsonb_exists_path(PG_FUNCTION_ARGS);
 extern Datum jsonb_exists_any(PG_FUNCTION_ARGS);
 extern Datum jsonb_exists_all(PG_FUNCTION_ARGS);
 extern Datum jsonb_contains(PG_FUNCTION_ARGS);