|
Get rid of unneeded Future.immediate() calls.
Future.then() will now implicitly wrap the callback result in a
future if it isn't one, so this manual wrapping can be removed.
Also take advantage of the fact that Future.immediate() is always
async now and remove some workarounds.
Finally, noticed there were two copies of the git-related code
floating around so killed the old one.
Committed: https://code.google.com/p/dart/source/detail?r=17519
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+37 lines, -116 lines) |
Patch |
 |
M |
utils/pub/command_uploader.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
utils/pub/entrypoint.dart
|
View
|
|
7 chunks |
+8 lines, -8 lines |
2 comments
|
Download
|
 |
M |
utils/pub/git.dart
|
View
|
|
3 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
 |
M |
utils/pub/git_source.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
utils/pub/http.dart
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
utils/pub/io.dart
|
View
|
|
4 chunks |
+2 lines, -66 lines |
0 comments
|
Download
|
 |
M |
utils/pub/oauth2.dart
|
View
|
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
utils/pub/pub.dart
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
utils/pub/system_cache.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
utils/pub/validator.dart
|
View
|
|
1 chunk |
+2 lines, -7 lines |
0 comments
|
Download
|
 |
M |
utils/pub/validator/lib.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
utils/pub/validator/name.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
utils/tests/pub/test_pub.dart
|
View
|
|
4 chunks |
+7 lines, -11 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|