Skip to content

Commit ecb875b

Browse files
Removed print statements
1 parent 073f12b commit ecb875b

3 files changed

Lines changed: 0 additions & 12 deletions

File tree

super_editor/lib/src/default_editor/document_caret_overlay.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ class CaretDocumentOverlayState extends DocumentLayoutLayerState<CaretDocumentOv
168168

169169
Rect caretRect =
170170
documentLayout.getEdgeForPosition(documentSelection.extent)!.translate(-widget.caretStyle.width / 2, 0.0);
171-
print("Caret height: ${caretRect.height}, for position: ${documentSelection.extent.nodePosition}");
172171

173172
final overlayBox = context.findRenderObject() as RenderBox?;
174173
if (overlayBox != null && overlayBox.hasSize && caretRect.left + widget.caretStyle.width >= overlayBox.size.width) {
@@ -202,9 +201,6 @@ class CaretDocumentOverlayState extends DocumentLayoutLayerState<CaretDocumentOv
202201

203202
// Use a RepaintBoundary so that caret flashing doesn't invalidate our
204203
// ancestor painting.
205-
if (caret != null) {
206-
print("Building caret height: ${caret.height}, top: ${caret.top}");
207-
}
208204
return IgnorePointer(
209205
child: RepaintBoundary(
210206
child: Stack(

super_editor/lib/src/default_editor/document_gestures_touch_ios.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,6 @@ class _IosDocumentTouchInteractorState extends State<IosDocumentTouchInteractor>
509509
// can ensure they're visible.
510510
final selectionRectInDocumentLayout =
511511
widget.getDocumentLayout().getRectForSelection(selection.base, selection.extent)!;
512-
print("Selection rect: $selectionRectInDocumentLayout");
513512
final extentOffsetInViewport = widget.document.getAffinityForSelection(selection) == TextAffinity.downstream
514513
? _documentOffsetToViewportOffset(selectionRectInDocumentLayout.bottomCenter)
515514
: _documentOffsetToViewportOffset(selectionRectInDocumentLayout.topCenter);

super_editor/lib/src/default_editor/multi_node_editing.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,6 @@ class DeleteContentCommand extends EditCommand {
788788
@override
789789
void execute(EditContext context, CommandExecutor executor) {
790790
_log.log('DeleteSelectionCommand', 'DocumentEditor: deleting selection: $documentRange');
791-
print("DeleteContentCommand: $documentRange");
792791
final document = context.document;
793792
final selection = context.composer.selection;
794793
final nodes = document.getNodesInside(documentRange.start, documentRange.end);
@@ -1047,9 +1046,6 @@ class DeleteContentCommand extends EditCommand {
10471046
required DocumentRange normalizedRange,
10481047
required DocumentNode node,
10491048
}) {
1050-
print("DELETE SELECTION WITHIN SINGLE NODE");
1051-
print(" - RANGE: $normalizedRange");
1052-
print("${StackTrace.current}");
10531049
_log.log('_deleteSelectionWithinSingleNode', ' - deleting selection within single node');
10541050
final startPosition = normalizedRange.start.nodePosition;
10551051
final endPosition = normalizedRange.end.nodePosition;
@@ -1060,7 +1056,6 @@ class DeleteContentCommand extends EditCommand {
10601056
}
10611057

10621058
if (node is EditableDocumentNode) {
1063-
print("THIS IS AN EDITABLE DOCUMENT NODE - FROM: $startPosition, TO: $endPosition");
10641059
final (updatedNode, caretPosition) = node.deleteSelection(startPosition, endPosition);
10651060

10661061
document.replaceNodeById(
@@ -1388,8 +1383,6 @@ class DeleteSelectionCommand extends EditCommand {
13881383
return;
13891384
}
13901385

1391-
print("DeleteSelectionCommand: $selection");
1392-
13931386
if (selection.base.nodeId == selection.extent.nodeId) {
13941387
// The selection is contained within a single node. Prevent the deletion
13951388
// if the node is non-deletable. When there are multiple nodes selected,

0 commit comments

Comments
 (0)