Skip to content

Commit e3f954f

Browse files
committed
Remove deprecated code
1 parent 9589bdb commit e3f954f

3 files changed

Lines changed: 1 addition & 21 deletions

File tree

api/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mod templates;
44
use askama::Template;
55
use axum::{
66
extract::{Path, State},
7-
http::{HeaderValue, StatusCode},
7+
http::StatusCode,
88
response::{Html, IntoResponse},
99
routing::get,
1010
Json, Router,

lib/src/home/widgets/snippet_dialog.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ class _BottomBarDialogWidgetState
185185
)
186186
.toList(),
187187
onReorder: (oldIndex, newIndex) async {
188-
// ! Removed setState
189188
await ref
190189
.watch(snippetBarStateProvider.notifier)
191190
.reorder(oldIndex, newIndex);
@@ -333,7 +332,6 @@ class _AddSnippetDialogWidgetState
333332
),
334333
));
335334
} else {
336-
// setState(() {
337335
await ref
338336
.watch(snippetBarStateProvider.notifier)
339337
.edit(
@@ -346,7 +344,6 @@ class _AddSnippetDialogWidgetState
346344
),
347345
),
348346
);
349-
// });
350347
}
351348
Navigator.of(context).pop();
352349
}

lib/src/home/widgets/text_selection_controls.dart

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,6 @@ class CustomTextSelectionControls extends TextSelectionControls {
3434
ClipboardStatusNotifier? clipboardStatus,
3535
Offset? lastSecondaryTapDownPosition,
3636
) {
37-
// ! Deprecate later
38-
// final TextSelectionPoint startTextSelectionPoint = endpoints[0];
39-
// final TextSelectionPoint endTextSelectionPoint =
40-
// endpoints.length > 1 ? endpoints[1] : endpoints[0];
41-
// final Offset anchorAbove = Offset(
42-
// globalEditableRegion.left + selectionMidpoint.dx,
43-
// globalEditableRegion.top +
44-
// startTextSelectionPoint.point.dy -
45-
// textLineHeight -
46-
// _kToolbarContentDistance,
47-
// );
48-
// final Offset anchorBelow = Offset(
49-
// globalEditableRegion.left + selectionMidpoint.dx,
50-
// globalEditableRegion.top +
51-
// endTextSelectionPoint.point.dy +
52-
// _kToolbarContentDistanceBelow,
53-
// );
5437
return _TextSelectionControlsToolbar(
5538
globalEditableRegion: globalEditableRegion,
5639
textLineHeight: textLineHeight,

0 commit comments

Comments
 (0)