From 1c004d4d8a764bfc0d65fb824bd7dcdca40bcbf9 Mon Sep 17 00:00:00 2001 From: Virgil Date: Sat, 4 Apr 2026 20:03:22 +0000 Subject: [PATCH] refactor(store): remove redundant scoped quota constructor Co-Authored-By: Virgil --- scope.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/scope.go b/scope.go index a991227..1763b68 100644 --- a/scope.go +++ b/scope.go @@ -102,16 +102,6 @@ func NewScopedConfigured(storeInstance *Store, scopedConfig ScopedStoreConfig) ( return scopedStore, nil } -// Usage example: `scopedStore, err := store.NewScopedWithQuota(storeInstance, "tenant-a", store.QuotaConfig{MaxKeys: 100, MaxGroups: 10}); if err != nil { return }` -// Prefer `NewScopedConfigured(store.ScopedStoreConfig{...})` when the full -// namespace and quota configuration are already known at the call site. -func NewScopedWithQuota(storeInstance *Store, namespace string, quota QuotaConfig) (*ScopedStore, error) { - return NewScopedConfigured(storeInstance, ScopedStoreConfig{ - Namespace: namespace, - Quota: quota, - }) -} - func (scopedStore *ScopedStore) namespacedGroup(group string) string { return scopedStore.namespace + ":" + group }