Remove dead code: _createDependencyKey (no longer used, cycle detection not affected)

This commit is contained in:
Sergey Penkovsky
2025-07-30 08:17:49 +03:00
parent 5630efccfe
commit d4af82ba01
4 changed files with 11 additions and 4 deletions

View File

@@ -151,6 +151,7 @@ void main() {
CherryPick.closeRootScope();
// Создаем скоуп без обнаружения
// ignore: unused_local_variable
final specificScope = CherryPick.openRootScope();
print(' Detection in root scope: ${CherryPick.isCycleDetectionEnabledForScope()}');
@@ -159,6 +160,7 @@ void main() {
print('✅ Detection enabled for root scope: ${CherryPick.isCycleDetectionEnabledForScope()}');
// Создаем дочерний скоуп
// ignore: unused_local_variable
final featureScope = CherryPick.openScope(scopeName: 'feature.auth');
print(' Detection in feature.auth scope: ${CherryPick.isCycleDetectionEnabledForScope(scopeName: 'feature.auth')}');
@@ -191,6 +193,7 @@ void main() {
print(' Chain before resolve: ${CherryPick.getCurrentResolutionChain()}');
// The chain is populated during resolution, but cleared after completion
// ignore: unused_local_variable
final trackedUserService = trackingScope.resolve<UserService>();
print(' Chain after resolve: ${CherryPick.getCurrentResolutionChain()}');
print('');