Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Issue 12255016: Get rid of old redundant methods in io.dart. (Closed)

Created:
7 years, 10 months ago by Bob Nystrom
Modified:
7 years, 10 months ago
Reviewers:
nweiz
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Get rid of old redundant methods in io.dart. Now that we have pkg/path, we can ditch the old methods in io.dart that do the same thing. Committed: https://code.google.com/p/dart/source/detail?r=18500

Patch Set 1 #

Total comments: 6

Patch Set 2 : Revise and update to latest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -91 lines) Patch
M utils/pub/command_lish.dart View 1 1 chunk +3 lines, -3 lines 0 comments Download
M utils/pub/entrypoint.dart View 7 chunks +12 lines, -9 lines 0 comments Download
M utils/pub/io.dart View 1 10 chunks +28 lines, -49 lines 0 comments Download
M utils/pub/oauth2.dart View 2 chunks +5 lines, -3 lines 0 comments Download
M utils/pub/package.dart View 2 chunks +4 lines, -1 line 0 comments Download
M utils/pub/pub.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/source.dart View 1 2 chunks +11 lines, -8 lines 0 comments Download
M utils/pub/system_cache.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/validator/compiled_dartdoc.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/pub/validator/directory.dart View 2 chunks +3 lines, -1 line 0 comments Download
M utils/pub/validator/lib.dart View 2 chunks +3 lines, -1 line 0 comments Download
M utils/pub/validator/license.dart View 2 chunks +3 lines, -1 line 0 comments Download
M utils/pub/validator/name.dart View 1 2 chunks +3 lines, -2 lines 0 comments Download
M utils/tests/pub/test_pub.dart View 1 6 chunks +14 lines, -9 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Bob Nystrom
Now that we have pkg/path, start using it more! Eventually, I'd like to move towards ...
7 years, 10 months ago (2013-02-13 22:09:51 UTC) #1
nweiz
LGTM I'd like to see a more thorough move to never pass around File and ...
7 years, 10 months ago (2013-02-14 00:10:37 UTC) #2
Bob Nystrom
7 years, 10 months ago (2013-02-14 01:14:19 UTC) #3
Thanks!

https://codereview.chromium.org/12255016/diff/1/utils/pub/io.dart
File utils/pub/io.dart (right):

https://codereview.chromium.org/12255016/diff/1/utils/pub/io.dart#newcode28
utils/pub/io.dart:28: String join(part1, [part2, part3, part4, part5, part6,
part7, part8]) {
On 2013/02/14 00:10:37, nweiz wrote:
> Can we get rid of this?

That will be a bit more invasive, so I figured I'd do that in another patch. I
like doing things incrementally.

https://codereview.chromium.org/12255016/diff/1/utils/pub/io.dart#newcode37
utils/pub/io.dart:37: List<String> splitPath(entry) =>
path.split(_getPath(entry));
On 2013/02/14 00:10:37, nweiz wrote:
> Can we get rid of this?

Done.

https://codereview.chromium.org/12255016/diff/1/utils/pub/io.dart#newcode41
utils/pub/io.dart:41: bool isBeneath(entry, dir) {
On 2013/02/14 00:10:37, nweiz wrote:
> Since this just calls path methods now, we should mark these as Strings.

Done.

Powered by Google App Engine
This is Rietveld 408576698