@@ -139,7 +139,7 @@ void recursiveCopy(Directory source, Directory target) {
139
139
dest.writeAsBytesSync (entity.readAsBytesSync ());
140
140
// Preserve executable bit
141
141
final String modes = entity.statSync ().modeString ();
142
- if (modes != null && modes .contains ('x' )) {
142
+ if (modes.contains ('x' )) {
143
143
makeExecutable (dest);
144
144
}
145
145
}
@@ -276,7 +276,6 @@ Future<Process> startProcess(
276
276
bool isBot = true , // set to false to pretend not to be on a bot (e.g. to test user-facing outputs)
277
277
String ? workingDirectory,
278
278
}) async {
279
- assert (isBot != null );
280
279
final String command = '$executable ${arguments ?.join (" " ) ?? "" }' ;
281
280
final String finalWorkingDirectory = workingDirectory ?? cwd;
282
281
final Map <String , String > newEnvironment = Map <String , String >.from (environment ?? < String , String > {});
@@ -504,7 +503,6 @@ Future<Process> startFlutter(String command, {
504
503
Map <String , String > environment = const < String , String > {},
505
504
bool isBot = true , // set to false to pretend not to be on a bot (e.g. to test user-facing outputs)
506
505
}) {
507
- assert (isBot != null );
508
506
final List <String > args = flutterCommandArgs (command, options);
509
507
return startProcess (
510
508
path.join (flutterDirectory.path, 'bin' , 'flutter' ),
@@ -635,48 +633,6 @@ Future<void> getNewGallery(String revision, Directory galleryDir) async {
635
633
});
636
634
}
637
635
638
- void checkNotNull (Object o1,
639
- [Object o2 = 1 ,
640
- Object o3 = 1 ,
641
- Object o4 = 1 ,
642
- Object o5 = 1 ,
643
- Object o6 = 1 ,
644
- Object o7 = 1 ,
645
- Object o8 = 1 ,
646
- Object o9 = 1 ,
647
- Object o10 = 1 ]) {
648
- if (o1 == null ) {
649
- throw 'o1 is null' ;
650
- }
651
- if (o2 == null ) {
652
- throw 'o2 is null' ;
653
- }
654
- if (o3 == null ) {
655
- throw 'o3 is null' ;
656
- }
657
- if (o4 == null ) {
658
- throw 'o4 is null' ;
659
- }
660
- if (o5 == null ) {
661
- throw 'o5 is null' ;
662
- }
663
- if (o6 == null ) {
664
- throw 'o6 is null' ;
665
- }
666
- if (o7 == null ) {
667
- throw 'o7 is null' ;
668
- }
669
- if (o8 == null ) {
670
- throw 'o8 is null' ;
671
- }
672
- if (o9 == null ) {
673
- throw 'o9 is null' ;
674
- }
675
- if (o10 == null ) {
676
- throw 'o10 is null' ;
677
- }
678
- }
679
-
680
636
/// Splits [from] into lines and selects those that contain [pattern] .
681
637
Iterable <String > grep (Pattern pattern, {required String from}) {
682
638
return from.split ('\n ' ).where ((String line) {
0 commit comments