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
93a74ca9
Unverified
Commit
93a74ca9
authored
Jul 12, 2022
by
Alexandre Ardhuin
Committed by
GitHub
Jul 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused members in executable libs (#107464)
parent
cfff88b2
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
2 additions
and
87 deletions
+2
-87
icon_color_test.dart
dev/benchmarks/test_apps/stocks/test/icon_color_test.dart
+0
-2
analyze.dart
dev/bots/analyze.dart
+0
-2
test.dart
dev/bots/test.dart
+0
-38
unpublish_package.dart
dev/bots/unpublish_package.dart
+0
-3
build_aar_module_test.dart
dev/devicelab/bin/tasks/build_aar_module_test.dart
+0
-4
fast_scroll_heavy_gridview__memory.dart
...vicelab/bin/tasks/fast_scroll_heavy_gridview__memory.dart
+0
-1
fast_scroll_large_images__memory.dart
...devicelab/bin/tasks/fast_scroll_large_images__memory.dart
+0
-1
flutter_gallery_v2_chrome_run_test.dart
...vicelab/bin/tasks/flutter_gallery_v2_chrome_run_test.dart
+0
-3
adb_test.dart
dev/devicelab/test/adb_test.dart
+0
-2
main.dart
dev/forbidden_from_release_tests/bin/main.dart
+0
-2
image_loading_main.dart
...tegration_tests/web_e2e_tests/lib/image_loading_main.dart
+2
-0
color_testing_demo.dart
dev/manual_tests/lib/color_testing_demo.dart
+0
-9
hover.dart
dev/manual_tests/lib/hover.dart
+0
-18
dartdoc.dart
dev/tools/dartdoc.dart
+0
-1
examples_smoke_test.dart
dev/tools/examples_smoke_test.dart
+0
-1
No files found.
dev/benchmarks/test_apps/stocks/test/icon_color_test.dart
View file @
93a74ca9
...
...
@@ -34,8 +34,6 @@ Element? findElementOfExactWidgetTypeGoingUp(Element node, Type targetType) {
return
result
;
}
final
RegExp
materialIconAssetNameColorExtractor
=
RegExp
(
r'[^/]+/ic_.+_(white|black)_[0-9]+dp\.png'
);
void
checkIconColor
(
WidgetTester
tester
,
String
label
,
Color
color
)
{
final
Element
listTile
=
findElementOfExactWidgetTypeGoingUp
(
tester
.
element
(
find
.
text
(
label
)),
ListTile
)!;
final
Element
asset
=
findElementOfExactWidgetTypeGoingDown
(
listTile
,
RichText
)!;
...
...
dev/bots/analyze.dart
View file @
93a74ca9
...
...
@@ -32,8 +32,6 @@ late final String dart;
/// The path to the `pub` executable; set at the top of `main`
late
final
String
pub
;
final
String
pubCache
=
path
.
join
(
flutterRoot
,
'.pub-cache'
);
/// When you call this, you can pass additional arguments to pass custom
/// arguments to flutter analyze. For example, you might want to call this
/// script with the parameter --dart-sdk to use custom dart sdk.
...
...
dev/bots/test.dart
View file @
93a74ca9
...
...
@@ -35,7 +35,6 @@ final String flutterRoot = path.dirname(path.dirname(path.dirname(path.fromUri(P
final
String
flutter
=
path
.
join
(
flutterRoot
,
'bin'
,
'flutter
$bat
'
);
final
String
dart
=
path
.
join
(
flutterRoot
,
'bin'
,
'cache'
,
'dart-sdk'
,
'bin'
,
'dart
$exe
'
);
final
String
pubCache
=
path
.
join
(
flutterRoot
,
'.pub-cache'
);
final
String
toolRoot
=
path
.
join
(
flutterRoot
,
'packages'
,
'flutter_tools'
);
final
String
engineVersionFile
=
path
.
join
(
flutterRoot
,
'bin'
,
'internal'
,
'engine.version'
);
final
String
flutterPluginsVersionFile
=
path
.
join
(
flutterRoot
,
'bin'
,
'internal'
,
'flutter_plugins.version'
);
...
...
@@ -1812,31 +1811,6 @@ void adjustEnvironmentToEnableFlutterAsserts(Map<String, String> environment) {
environment
[
'FLUTTER_TOOL_ARGS'
]
=
toolsArgs
.
trim
();
}
Map
<
String
,
String
>
_initGradleEnvironment
()
{
final
String
?
androidSdkRoot
=
(
Platform
.
environment
[
'ANDROID_HOME'
]?.
isEmpty
??
true
)
?
Platform
.
environment
[
'ANDROID_SDK_ROOT'
]
:
Platform
.
environment
[
'ANDROID_HOME'
];
if
(
androidSdkRoot
==
null
||
androidSdkRoot
.
isEmpty
)
{
print
(
'
${red}
Could not find Android SDK; set ANDROID_SDK_ROOT.
$reset
'
);
exit
(
1
);
}
return
<
String
,
String
>{
'ANDROID_HOME'
:
androidSdkRoot
!,
'ANDROID_SDK_ROOT'
:
androidSdkRoot
,
};
}
final
Map
<
String
,
String
>
gradleEnvironment
=
_initGradleEnvironment
();
void
deleteFile
(
String
path
)
{
// This is technically a race condition but nobody else should be running
// while this script runs, so we should be ok. (Sadly recursive:true does not
// obviate the need for existsSync, at least on Windows.)
final
File
file
=
File
(
path
);
if
(
file
.
existsSync
())
file
.
deleteSync
();
}
enum
CiProviders
{
cirrus
,
luci
,
...
...
@@ -1865,18 +1839,6 @@ CiProviders? get ciProvider {
return
null
;
}
/// Returns the name of the branch being tested.
String
get
branchName
{
switch
(
ciProvider
)
{
case
CiProviders
.
cirrus
:
return
Platform
.
environment
[
'CIRRUS_BRANCH'
]!;
case
CiProviders
.
luci
:
return
Platform
.
environment
[
'LUCI_BRANCH'
]!;
case
null
:
return
''
;
}
}
/// Checks the given file's contents to determine if they match the allowed
/// pattern for version strings.
///
...
...
dev/bots/unpublish_package.dart
View file @
93a74ca9
...
...
@@ -14,7 +14,6 @@
import
'dart:async'
;
import
'dart:convert'
;
import
'dart:io'
hide
Platform
;
import
'dart:typed_data'
;
import
'package:args/args.dart'
;
import
'package:path/path.dart'
as
path
;
...
...
@@ -210,8 +209,6 @@ class ProcessRunner {
}
}
typedef
HttpReader
=
Future
<
Uint8List
>
Function
(
Uri
url
,
{
Map
<
String
,
String
>
headers
});
class
ArchiveUnpublisher
{
ArchiveUnpublisher
(
this
.
tempDir
,
...
...
dev/devicelab/bin/tasks/build_aar_module_test.dart
View file @
93a74ca9
...
...
@@ -12,10 +12,6 @@ import 'package:path/path.dart' as path;
final
String
platformLineSep
=
Platform
.
isWindows
?
'
\r\n
'
:
'
\n
'
;
final
String
gradlew
=
Platform
.
isWindows
?
'gradlew.bat'
:
'gradlew'
;
final
String
gradlewExecutable
=
Platform
.
isWindows
?
'.
\\
$gradlew
'
:
'./
$gradlew
'
;
/// Tests that AARs can be built on module projects.
Future
<
void
>
main
()
async
{
await
task
(()
async
{
...
...
dev/devicelab/bin/tasks/fast_scroll_heavy_gridview__memory.dart
View file @
93a74ca9
...
...
@@ -8,7 +8,6 @@ import 'package:flutter_devicelab/framework/utils.dart';
import
'package:flutter_devicelab/tasks/perf_tests.dart'
;
const
String
kPackageName
=
'com.example.macrobenchmarks'
;
const
String
kActivityName
=
'com.example.macrobenchmarks.MainActivity'
;
class
FastScrollHeavyGridViewMemoryTest
extends
MemoryTest
{
FastScrollHeavyGridViewMemoryTest
()
...
...
dev/devicelab/bin/tasks/fast_scroll_large_images__memory.dart
View file @
93a74ca9
...
...
@@ -8,7 +8,6 @@ import 'package:flutter_devicelab/framework/utils.dart';
import
'package:flutter_devicelab/tasks/perf_tests.dart'
;
const
String
kPackageName
=
'com.example.macrobenchmarks'
;
const
String
kActivityName
=
'com.example.macrobenchmarks.MainActivity'
;
class
FastScrollLargeImagesMemoryTest
extends
MemoryTest
{
FastScrollLargeImagesMemoryTest
()
...
...
dev/devicelab/bin/tasks/flutter_gallery_v2_chrome_run_test.dart
View file @
93a74ca9
...
...
@@ -16,9 +16,6 @@ Future<void> main() async {
await
task
(
const
NewGalleryChromeRunTest
().
run
);
}
/// URI for the New Flutter Gallery repository.
const
String
galleryRepo
=
'https://github.com/flutter/gallery.git'
;
/// After the gallery loads, a duration of [durationToWaitForError]
/// is waited, allowing any possible exceptions to be thrown.
const
Duration
durationToWaitForError
=
Duration
(
seconds:
5
);
...
...
dev/devicelab/test/adb_test.dart
View file @
93a74ca9
...
...
@@ -145,8 +145,6 @@ CommandArgs cmd({
);
}
typedef
ExitErrorFactory
=
dynamic
Function
();
@immutable
class
CommandArgs
{
const
CommandArgs
({
required
this
.
command
,
this
.
arguments
,
this
.
environment
});
...
...
dev/forbidden_from_release_tests/bin/main.dart
View file @
93a74ca9
...
...
@@ -10,11 +10,9 @@ import 'package:file/file.dart';
import
'package:file/local.dart'
;
import
'package:package_config/package_config.dart'
;
import
'package:path/path.dart'
as
path
;
import
'package:process/process.dart'
;
import
'package:vm_snapshot_analysis/program_info.dart'
;
import
'package:vm_snapshot_analysis/v8_profile.dart'
;
const
ProcessManager
processManager
=
LocalProcessManager
();
const
FileSystem
fs
=
LocalFileSystem
();
Future
<
void
>
main
(
List
<
String
>
args
)
async
{
...
...
dev/integration_tests/web_e2e_tests/lib/image_loading_main.dart
View file @
93a74ca9
...
...
@@ -11,9 +11,11 @@ final Completer<void> _assetImageCompleter = Completer<void>();
final
Completer
<
void
>
_networkImageCompleter
=
Completer
<
void
>();
/// Notifies that Image.asset used in the test app loaded the image.
@visibleForTesting
Future
<
void
>
get
whenAssetImageLoads
=>
_assetImageCompleter
.
future
;
/// Notifies that Image.network used in the test app loaded the image.
@visibleForTesting
Future
<
void
>
get
whenNetworkImageLoads
=>
_networkImageCompleter
.
future
;
Future
<
void
>
main
()
async
{
...
...
dev/manual_tests/lib/color_testing_demo.dart
View file @
93a74ca9
...
...
@@ -4,15 +4,6 @@
import
'package:flutter/material.dart'
;
class
ColorTestingDemo
extends
StatelessWidget
{
const
ColorTestingDemo
({
super
.
key
});
static
const
String
routeName
=
'/color_demo'
;
@override
Widget
build
(
BuildContext
context
)
=>
const
ColorDemoHome
();
}
class
ColorDemoHome
extends
StatelessWidget
{
const
ColorDemoHome
({
super
.
key
});
...
...
dev/manual_tests/lib/hover.dart
View file @
93a74ca9
...
...
@@ -11,24 +11,6 @@ void main() {
));
}
class
DemoButton
extends
StatelessWidget
{
const
DemoButton
({
super
.
key
,
required
this
.
name
});
final
String
name
;
void
_handleOnPressed
()
{
print
(
'Button
$name
pressed.'
);
}
@override
Widget
build
(
BuildContext
context
)
{
return
TextButton
(
onPressed:
()
=>
_handleOnPressed
(),
child:
Text
(
name
),
);
}
}
class
HoverDemo
extends
StatefulWidget
{
const
HoverDemo
({
super
.
key
});
...
...
dev/tools/dartdoc.dart
View file @
93a74ca9
...
...
@@ -16,7 +16,6 @@ import 'dartdoc_checker.dart';
const
String
kDocsRoot
=
'dev/docs'
;
const
String
kPublishRoot
=
'
$kDocsRoot
/doc'
;
const
String
kSnippetsRoot
=
'dev/snippets'
;
const
String
kDummyPackageName
=
'Flutter'
;
const
String
kPlatformIntegrationPackageName
=
'platform_integration'
;
...
...
dev/tools/examples_smoke_test.dart
View file @
93a74ca9
...
...
@@ -17,7 +17,6 @@ import 'package:path/path.dart' as path;
import
'package:platform/platform.dart'
;
import
'package:process/process.dart'
;
const
bool
kIsWeb
=
identical
(
0
,
0.0
);
FileSystem
filesystem
=
const
LocalFileSystem
();
ProcessManager
processManager
=
const
LocalProcessManager
();
Platform
platform
=
const
LocalPlatform
();
...
...
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