From 2047645e8949ddd868bf9ae1651d7fc4f345c9ff Mon Sep 17 00:00:00 2001 From: stopflock Date: Thu, 11 Dec 2025 16:46:43 -0600 Subject: [PATCH] clean up debug logging --- lib/app_state.dart | 6 ------ lib/widgets/add_node_sheet.dart | 2 -- lib/widgets/edit_node_sheet.dart | 2 -- 3 files changed, 10 deletions(-) diff --git a/lib/app_state.dart b/lib/app_state.dart index 20f25fa..1f613b8 100644 --- a/lib/app_state.dart +++ b/lib/app_state.dart @@ -478,15 +478,12 @@ class AppState extends ChangeNotifier { // Positioning tutorial methods void registerTutorialCallback(VoidCallback onComplete) { - debugPrint('[AppState] Registering tutorial callback'); _tutorialCompletionCallback = onComplete; // Record the starting position when tutorial begins if (session?.target != null) { _tutorialStartPosition = session!.target; - debugPrint('[AppState] Tutorial start position (add): ${_tutorialStartPosition}'); } else if (editSession?.target != null) { _tutorialStartPosition = editSession!.target; - debugPrint('[AppState] Tutorial start position (edit): ${_tutorialStartPosition}'); } } @@ -502,10 +499,7 @@ class AppState extends ChangeNotifier { final distance = Distance(); final distanceMoved = distance.as(LengthUnit.Meter, _tutorialStartPosition!, newPosition); - debugPrint('[AppState] Tutorial movement check: ${distanceMoved.toStringAsFixed(2)}m (need ${kPositioningTutorialMinMovementMeters}m)'); - if (distanceMoved >= kPositioningTutorialMinMovementMeters) { - debugPrint('[AppState] Tutorial completed! Calling callback and marking as complete'); // Tutorial completed! Mark as complete and notify callback immediately final callback = _tutorialCompletionCallback; clearTutorialCallback(); diff --git a/lib/widgets/add_node_sheet.dart b/lib/widgets/add_node_sheet.dart index 19c0364..6b7b1d2 100644 --- a/lib/widgets/add_node_sheet.dart +++ b/lib/widgets/add_node_sheet.dart @@ -66,9 +66,7 @@ class _AddNodeSheetState extends State { } void _hideTutorial() { - debugPrint('[AddNodeSheet] Tutorial completion callback triggered'); if (mounted && _showTutorial) { - debugPrint('[AddNodeSheet] Hiding tutorial overlay'); setState(() { _showTutorial = false; }); diff --git a/lib/widgets/edit_node_sheet.dart b/lib/widgets/edit_node_sheet.dart index e708cc7..87a4a8e 100644 --- a/lib/widgets/edit_node_sheet.dart +++ b/lib/widgets/edit_node_sheet.dart @@ -51,9 +51,7 @@ class _EditNodeSheetState extends State { } void _hideTutorial() { - debugPrint('[EditNodeSheet] Tutorial completion callback triggered'); if (mounted && _showTutorial) { - debugPrint('[EditNodeSheet] Hiding tutorial overlay'); setState(() { _showTutorial = false; });