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

Unified Diff: sdk/lib/io/link.dart

Issue 23054008: Remove the Path class from dart:io (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed first round of review comments Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/io/link.dart
diff --git a/sdk/lib/io/link.dart b/sdk/lib/io/link.dart
index 8b726ed5ba34136edd7eaf95368c5f2d7eecf0d0..d774fa266c48e4922f132391520b609d37c51b35 100644
--- a/sdk/lib/io/link.dart
+++ b/sdk/lib/io/link.dart
@@ -15,12 +15,6 @@ abstract class Link implements FileSystemEntity {
factory Link(String path) => new _Link(path);
/**
- * Creates a Link object from a Path object.
- */
- @deprecated
- factory Link.fromPath(Path path) => new _Link.fromPath(path);
-
- /**
* Creates a symbolic link. Returns a [:Future<Link>:] that completes with
* the link when it has been created. If the link exists,
* the future will complete with an error.
@@ -144,8 +138,6 @@ class _Link extends FileSystemEntity implements Link {
}
- _Link.fromPath(Path inputPath) : path = inputPath.toNativePath();
-
String toString() => "Link: '$path'";
Future<bool> exists() => FileSystemEntity.isLink(path);

Powered by Google App Engine
This is Rietveld 408576698