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
1ea72163
Unverified
Commit
1ea72163
authored
Jun 10, 2022
by
Anurag Roy
Committed by
GitHub
Jun 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] Remove redundant/unused code in version.dart (#105111)
parent
bd133fda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
version.dart
packages/flutter_tools/lib/src/version.dart
+2
-7
No files found.
packages/flutter_tools/lib/src/version.dart
View file @
1ea72163
...
...
@@ -273,7 +273,7 @@ class FlutterVersion {
///
/// Throws [VersionCheckError] if a git command fails, for example, when the
/// remote git repository is not reachable due to a network issue.
static
Future
<
String
>
fetchRemoteFrameworkCommitDate
(
String
branch
)
async
{
static
Future
<
String
>
fetchRemoteFrameworkCommitDate
()
async
{
try
{
// Fetch upstream branch's commit and tags
await
_run
(<
String
>[
'git'
,
'fetch'
,
'--tags'
]);
...
...
@@ -360,7 +360,7 @@ class FlutterVersion {
// Cache is empty or it's been a while since the last server ping. Ping the server.
try
{
final
DateTime
remoteFrameworkCommitDate
=
DateTime
.
parse
(
await
FlutterVersion
.
fetchRemoteFrameworkCommitDate
(
channel
),
await
FlutterVersion
.
fetchRemoteFrameworkCommitDate
(),
);
await
versionCheckStamp
.
store
(
newTimeVersionWasChecked:
now
,
...
...
@@ -926,11 +926,6 @@ class VersionFreshnessValidator {
/// Execute validations and print warning to [logger] if necessary.
Future
<
void
>
run
()
async
{
// Don't perform update checks if we're not on an official channel.
if
(!
kOfficialChannels
.
contains
(
version
.
channel
))
{
return
;
}
// Get whether there's a newer version on the remote. This only goes
// to the server if we haven't checked recently so won't happen on every
// command.
...
...
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