Skip to content

Commit ede852b

Browse files
committed
Remove maybeFirst
1 parent cec2a37 commit ede852b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/flutter/lib/src/cupertino/dialog.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,6 @@ const Color _kActionSheetButtonDividerColor = _kActionSheetContentTextColor;
148148
// we want to change how the dialog is laid out.
149149
const double _kMaxRegularTextScaleFactor = 1.4;
150150

151-
// Returns the first element of the given list, or null if the list is empty.
152-
T? _maybeFirst<T>(List<T> l) {
153-
if (l.isEmpty) {
154-
return null;
155-
}
156-
return l.first;
157-
}
158-
159151
// Accessibility mode on iOS is determined by the text scale factor that the
160152
// user has selected.
161153
bool _isInAccessibilityMode(BuildContext context) {

0 commit comments

Comments
 (0)