From 2ee3c1afda218e28501d558d7b02170b3cbbf8c6 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Thu, 2 Apr 2026 15:20:58 +0000 Subject: [PATCH] refactor: remove canUseFeature from useSubscription No external call sites existed. Feature gating now handled by useFeatureFlag hook backed by the feature_flags system. Co-Authored-By: Claude Opus 4.6 --- frontend/src/hooks/useSubscription.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/frontend/src/hooks/useSubscription.ts b/frontend/src/hooks/useSubscription.ts index 715a86bb..a5e43073 100644 --- a/frontend/src/hooks/useSubscription.ts +++ b/frontend/src/hooks/useSubscription.ts @@ -10,11 +10,6 @@ export function useSubscription() { const isPaidPlan = plan === 'pro' || plan === 'team' - const canUseFeature = (feature: 'custom_branding' | 'priority_support'): boolean => { - if (!limits) return false - return limits[feature] - } - const isAtTreeLimit = (): boolean => { if (!limits || !usage) return false if (limits.max_trees === null) return false // unlimited @@ -37,7 +32,6 @@ export function useSubscription() { usage, isActive, isPaidPlan, - canUseFeature, isAtTreeLimit, isAtSessionLimit, formatLimit,