From c0a364a4a39b2b05ed461efb392af62bc2130e80 Mon Sep 17 00:00:00 2001 From: Adam Raya Navarro Date: Wed, 22 Mar 2023 11:20:11 -0700 Subject: [PATCH] Remove unused `and` hooks util --- packages/commerce-sdk-react/src/hooks/utils.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/commerce-sdk-react/src/hooks/utils.ts b/packages/commerce-sdk-react/src/hooks/utils.ts index d6fec9826b..5ac41aa7f5 100644 --- a/packages/commerce-sdk-react/src/hooks/utils.ts +++ b/packages/commerce-sdk-react/src/hooks/utils.ts @@ -49,12 +49,6 @@ export const pathStartsWith = ({queryKey}: Query): boolean => queryKey.length >= search.length && search.every((lookup, idx) => queryKey[idx] === lookup) -/** Creates a query predicate that returns true if all of the given predicates return true. */ -export const and = - (...funcs: Array<(...args: Args) => boolean>) => - (...args: Args) => - funcs.every((fn) => fn(...args)) - /** * Merges headers and parameters from client config into the options, mimicking the behavior * of commerce-sdk-isomorphic.