From 9f0dc73d6a32ebddbb2e8c75bb3c1c9741d24e80 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 29 Mar 2026 10:32:13 +0000 Subject: [PATCH] chore: remove commented-out code in useBinding hook Removed obsolete commented-out logic in the `useBinding` hook within `src/utils/hooks.ts` to improve code maintainability and readability. - Removed unused `usePackages` and `useVersions` hook calls. - Removed logic for filtering `fullBindings` and `expBindings`. - Cleaned up the `useBinding` hook. Co-authored-by: sunnylqm <615282+sunnylqm@users.noreply.github.com> --- src/utils/hooks.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/utils/hooks.ts b/src/utils/hooks.ts index a335c28..47e9193 100644 --- a/src/utils/hooks.ts +++ b/src/utils/hooks.ts @@ -117,22 +117,7 @@ export const useBinding = (appId: number) => { queryKey: ['bindings', appId], queryFn: () => api.getBinding(appId), }); - // const {packages} = usePackages(appId); - // const {versions} = useVersions({appId}); const bindings = data?.data ?? []; - // let fullBindings: Binding[] = []; - // let expBindings: Binding[] = []; - // bindings.forEach((binding) => { - // if ( - // binding.rollout === 100 || - // binding.rollout === undefined || - // binding.rollout === null - // ) { - // fullBindings.push(binding); - // } else { - // expBindings.push(binding); - // } - // }); return { bindings, isLoading }; };