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

Unified Diff: sdk/lib/_internal/compiler/implementation/filenames.dart

Issue 694353007: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/_internal/compiler/implementation/filenames.dart
diff --git a/sdk/lib/_internal/compiler/implementation/filenames.dart b/sdk/lib/_internal/compiler/implementation/filenames.dart
deleted file mode 100644
index 32aca5374e2a00286af112f15b79aa18e1d5aa44..0000000000000000000000000000000000000000
--- a/sdk/lib/_internal/compiler/implementation/filenames.dart
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library filenames;
-
-import 'dart:io' show Platform;
-
-// For information about how to convert Windows file names to URIs:
-// http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx
-
-String nativeToUriPath(String filename) {
- // TODO(ahe): It would be nice to use a Dart library instead.
- if (!Platform.isWindows) return filename;
- filename = filename.replaceAll('\\', '/');
- if (filename.length > 2 && filename[1] == ':') {
- filename = "/$filename";
- }
- return filename;
-}
-
-String uriPathToNative(String path) {
- // TODO(ahe): It would be nice to use a Dart library instead.
- if (!Platform.isWindows) return path;
- if (path.length > 3 && path[0] == '/' && path[2] == ':') {
- return path.substring(1).replaceAll('/', '\\');
- } else {
- return path.replaceAll('/', '\\');
- }
-}
-
-final Uri currentDirectory = Uri.base;
-
-String appendSlash(String path) => path.endsWith('/') ? path : '$path/';
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/enqueue.dart ('k') | sdk/lib/_internal/compiler/implementation/hash/sha1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698