Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
fb90544c
Unverified
Commit
fb90544c
authored
Nov 03, 2020
by
Jonah Williams
Committed by
GitHub
Nov 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] remove unused or no longer useful code (#69547)
parent
a2a4e9ed
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
26 deletions
+4
-26
android_emulator.dart
packages/flutter_tools/lib/src/android/android_emulator.dart
+1
-2
android_workflow.dart
packages/flutter_tools/lib/src/android/android_workflow.dart
+1
-2
common.dart
packages/flutter_tools/lib/src/base/common.dart
+1
-5
process.dart
packages/flutter_tools/lib/src/base/process.dart
+1
-2
utils.dart
packages/flutter_tools/lib/src/base/utils.dart
+0
-13
daemon.dart
packages/flutter_tools/lib/src/commands/daemon.dart
+0
-2
No files found.
packages/flutter_tools/lib/src/android/android_emulator.dart
View file @
fb90544c
...
...
@@ -14,7 +14,6 @@ import '../base/file_system.dart';
import
'../base/io.dart'
;
import
'../base/logger.dart'
;
import
'../base/process.dart'
;
import
'../base/utils.dart'
;
import
'../convert.dart'
;
import
'../device.dart'
;
import
'../emulator.dart'
;
...
...
@@ -164,7 +163,7 @@ class AndroidEmulator extends Emulator {
.
transform
<
String
>(
utf8
.
decoder
)
.
transform
<
String
>(
const
LineSplitter
())
.
listen
(
stderrList
.
add
);
final
Future
<
void
>
stdioFuture
=
waitGroup
<
void
>(<
Future
<
void
>>[
final
Future
<
void
>
stdioFuture
=
Future
.
wait
<
void
>(<
Future
<
void
>>[
stdoutSubscription
.
asFuture
<
void
>(),
stderrSubscription
.
asFuture
<
void
>(),
]);
...
...
packages/flutter_tools/lib/src/android/android_workflow.dart
View file @
fb90544c
...
...
@@ -13,7 +13,6 @@ import '../base/logger.dart';
import
'../base/os.dart'
;
import
'../base/platform.dart'
;
import
'../base/user_messages.dart'
;
import
'../base/utils.dart'
;
import
'../base/version.dart'
;
import
'../convert.dart'
;
import
'../doctor.dart'
;
...
...
@@ -401,7 +400,7 @@ class AndroidLicenseValidator extends DoctorValidator {
// Wait for stdout and stderr to be fully processed, because process.exitCode
// may complete first.
try
{
await
waitGroup
<
void
>(<
Future
<
void
>>[
await
Future
.
wait
<
void
>(<
Future
<
void
>>[
globals
.
stdio
.
addStdoutStream
(
process
.
stdout
),
globals
.
stdio
.
addStderrStream
(
process
.
stderr
),
]);
...
...
packages/flutter_tools/lib/src/base/common.dart
View file @
fb90544c
...
...
@@ -2,10 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/// Whether the tool started from the daemon, as opposed to the command line.
// TODO(jonahwilliams): remove once IDE updates have rolled.
bool
isRunningFromDaemon
=
false
;
/// Throw a specialized exception for expected situations
/// where the tool should exit with a clear message to the user
/// and no stack trace unless the --verbose option is specified.
...
...
@@ -28,7 +24,7 @@ class ToolExit implements Exception {
String
toString
()
=>
'Exception:
$message
'
;
}
/// Indicates to the linter that the given future is intentionally not
`await`-
ed.
/// Indicates to the linter that the given future is intentionally not
await
ed.
///
/// Has the same functionality as `unawaited` from `package:pedantic`.
///
...
...
packages/flutter_tools/lib/src/base/process.dart
View file @
fb90544c
...
...
@@ -12,7 +12,6 @@ import 'common.dart';
import
'context.dart'
;
import
'io.dart'
;
import
'logger.dart'
;
import
'utils.dart'
;
typedef
StringConverter
=
String
Function
(
String
string
);
...
...
@@ -529,7 +528,7 @@ class _DefaultProcessUtils implements ProcessUtils {
// Wait for stdout to be fully processed
// because process.exitCode may complete first causing flaky tests.
await
waitGroup
<
void
>(<
Future
<
void
>>[
await
Future
.
wait
<
void
>(<
Future
<
void
>>[
stdoutSubscription
.
asFuture
<
void
>(),
stderrSubscription
.
asFuture
<
void
>(),
]);
...
...
packages/flutter_tools/lib/src/base/utils.dart
View file @
fb90544c
...
...
@@ -153,19 +153,6 @@ Map<String, dynamic> castStringKeyedMap(dynamic untyped) {
return
map
?.
cast
<
String
,
dynamic
>();
}
typedef
AsyncCallback
=
Future
<
void
>
Function
();
/// Returns a [Future] that completes when all given [Future]s complete.
///
/// Uses [Future.wait] but removes null elements from the provided
/// `futures` iterable first.
///
/// The returned [Future<List>] will be shorter than the given `futures` if
/// it contains nulls.
Future
<
List
<
T
>>
waitGroup
<
T
>(
Iterable
<
Future
<
T
>>
futures
)
{
return
Future
.
wait
<
T
>(
futures
.
where
((
Future
<
T
>
future
)
=>
future
!=
null
));
}
/// Smallest column that will be used for text wrapping. If the requested column
/// width is smaller than this, then this is what will be used.
const
int
kMinColumnWidth
=
10
;
...
...
packages/flutter_tools/lib/src/commands/daemon.dart
View file @
fb90544c
...
...
@@ -50,8 +50,6 @@ class DaemonCommand extends FlutterCommand {
@override
Future
<
FlutterCommandResult
>
runCommand
()
async
{
globals
.
printStatus
(
'Starting device daemon...'
);
isRunningFromDaemon
=
true
;
final
Daemon
daemon
=
Daemon
(
stdinCommandStream
,
stdoutCommandResponse
,
notifyingLogger:
asLogger
<
NotifyingLogger
>(
globals
.
logger
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment