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
f25e4fea
Unverified
Commit
f25e4fea
authored
Jul 15, 2021
by
Lau Ching Jun
Committed by
GitHub
Jul 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary variables. (#86444)
parent
497fc106
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
21 deletions
+11
-21
attach.dart
packages/flutter_tools/lib/src/commands/attach.dart
+0
-2
run.dart
packages/flutter_tools/lib/src/commands/run.dart
+0
-2
compile.dart
packages/flutter_tools/lib/src/compile.dart
+4
-2
resident_runner.dart
packages/flutter_tools/lib/src/resident_runner.dart
+5
-13
attach_test.dart
...utter_tools/test/commands.shard/hermetic/attach_test.dart
+2
-2
No files found.
packages/flutter_tools/lib/src/commands/attach.dart
View file @
f25e4fea
...
...
@@ -411,8 +411,6 @@ known, it can be explicitly provided to attach via the command-line, e.g.
final
FlutterDevice
flutterDevice
=
await
FlutterDevice
.
create
(
device
,
fileSystemRoots:
stringsArg
(
FlutterOptions
.
kFileSystemRoot
),
fileSystemScheme:
stringArg
(
FlutterOptions
.
kFileSystemScheme
),
target:
targetFile
,
targetModel:
TargetModel
(
stringArg
(
'target-model'
)),
buildInfo:
buildInfo
,
...
...
packages/flutter_tools/lib/src/commands/run.dart
View file @
f25e4fea
...
...
@@ -616,8 +616,6 @@ class RunCommand extends RunCommandBase {
for
(
final
Device
device
in
devices
)
await
FlutterDevice
.
create
(
device
,
fileSystemRoots:
fileSystemRoots
,
fileSystemScheme:
fileSystemScheme
,
experimentalFlags:
expFlags
,
target:
targetFile
,
buildInfo:
buildInfo
,
...
...
packages/flutter_tools/lib/src/compile.dart
View file @
f25e4fea
...
...
@@ -542,7 +542,7 @@ class DefaultResidentCompiler implements ResidentCompiler {
this
.
testCompilation
=
false
,
this
.
trackWidgetCreation
=
true
,
this
.
packagesPath
,
this
.
fileSystemRoots
=
const
<
String
>[],
List
<
String
>
fileSystemRoots
=
const
<
String
>[],
this
.
fileSystemScheme
,
this
.
initializeFromDill
,
this
.
targetModel
=
TargetModel
.
flutter
,
...
...
@@ -560,7 +560,9 @@ class DefaultResidentCompiler implements ResidentCompiler {
_platform
=
platform
,
dartDefines
=
dartDefines
??
const
<
String
>[],
// This is a URI, not a file path, so the forward slash is correct even on Windows.
sdkRoot
=
sdkRoot
.
endsWith
(
'/'
)
?
sdkRoot
:
'
$sdkRoot
/'
;
sdkRoot
=
sdkRoot
.
endsWith
(
'/'
)
?
sdkRoot
:
'
$sdkRoot
/'
,
// Make a copy, we might need to modify it later.
fileSystemRoots
=
List
<
String
>.
from
(
fileSystemRoots
);
final
Logger
_logger
;
final
ProcessManager
_processManager
;
...
...
packages/flutter_tools/lib/src/resident_runner.dart
View file @
f25e4fea
...
...
@@ -47,8 +47,6 @@ class FlutterDevice {
FlutterDevice
(
this
.
device
,
{
@required
this
.
buildInfo
,
this
.
fileSystemRoots
,
this
.
fileSystemScheme
,
TargetModel
targetModel
=
TargetModel
.
flutter
,
this
.
targetPlatform
,
ResidentCompiler
generator
,
...
...
@@ -62,8 +60,8 @@ class FlutterDevice {
),
buildMode:
buildInfo
.
mode
,
trackWidgetCreation:
buildInfo
.
trackWidgetCreation
,
fileSystemRoots:
fileSystemRoots
??
<
String
>[],
fileSystemScheme:
fileSystemScheme
,
fileSystemRoots:
buildInfo
.
fileSystemRoots
??
<
String
>[],
fileSystemScheme:
buildInfo
.
fileSystemScheme
,
targetModel:
targetModel
,
dartDefines:
buildInfo
.
dartDefines
,
packagesPath:
buildInfo
.
packagesPath
,
...
...
@@ -81,8 +79,6 @@ class FlutterDevice {
@required
String
target
,
@required
BuildInfo
buildInfo
,
@required
Platform
platform
,
List
<
String
>
fileSystemRoots
,
String
fileSystemScheme
,
TargetModel
targetModel
=
TargetModel
.
flutter
,
List
<
String
>
experimentalFlags
,
ResidentCompiler
generator
,
...
...
@@ -121,7 +117,7 @@ class FlutterDevice {
globals
.
artifacts
.
getHostArtifact
(
HostArtifact
.
flutterWebSdk
).
path
,
buildMode:
buildInfo
.
mode
,
trackWidgetCreation:
buildInfo
.
trackWidgetCreation
,
fileSystemRoots:
fileSystemRoots
??
<
String
>[],
fileSystemRoots:
buildInfo
.
fileSystemRoots
??
<
String
>[],
// Override the filesystem scheme so that the frontend_server can find
// the generated entrypoint code.
fileSystemScheme:
'org-dartlang-app'
,
...
...
@@ -162,8 +158,8 @@ class FlutterDevice {
),
buildMode:
buildInfo
.
mode
,
trackWidgetCreation:
buildInfo
.
trackWidgetCreation
,
fileSystemRoots:
fileSystemRoots
,
fileSystemScheme:
fileSystemScheme
,
fileSystemRoots:
buildInfo
.
fileSystemRoots
,
fileSystemScheme:
buildInfo
.
fileSystemScheme
,
targetModel:
targetModel
,
dartDefines:
buildInfo
.
dartDefines
,
extraFrontEndOptions:
extraFrontEndOptions
,
...
...
@@ -183,8 +179,6 @@ class FlutterDevice {
return
FlutterDevice
(
device
,
fileSystemRoots:
fileSystemRoots
,
fileSystemScheme:
fileSystemScheme
,
targetModel:
targetModel
,
targetPlatform:
targetPlatform
,
generator:
generator
,
...
...
@@ -204,8 +198,6 @@ class FlutterDevice {
FlutterVmService
vmService
;
DevFS
devFS
;
ApplicationPackage
package
;
List
<
String
>
fileSystemRoots
;
String
fileSystemScheme
;
StreamSubscription
<
String
>
_loggingSubscription
;
bool
_isListeningForObservatoryUri
;
...
...
packages/flutter_tools/test/commands.shard/hermetic/attach_test.dart
View file @
f25e4fea
...
...
@@ -197,8 +197,8 @@ void main() {
// output dill, filesystem scheme, and filesystem root.
final
FlutterDevice
flutterDevice
=
hotRunnerFactory
.
devices
.
first
;
expect
(
flutterDevice
.
fileSystemScheme
,
filesystemScheme
);
expect
(
flutterDevice
.
fileSystemRoots
,
const
<
String
>[
filesystemRoot
]);
expect
(
flutterDevice
.
buildInfo
.
fileSystemScheme
,
filesystemScheme
);
expect
(
flutterDevice
.
buildInfo
.
fileSystemRoots
,
const
<
String
>[
filesystemRoot
]);
},
overrides:
<
Type
,
Generator
>{
FileSystem:
()
=>
testFileSystem
,
ProcessManager:
()
=>
FakeProcessManager
.
any
(),
...
...
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