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

Unified Diff: pkg/compiler/lib/src/filenames.dart

Issue 693183006: Revert "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
« no previous file with comments | « pkg/compiler/lib/src/enqueue.dart ('k') | pkg/compiler/lib/src/hash/sha1.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/filenames.dart
diff --git a/pkg/compiler/lib/src/filenames.dart b/pkg/compiler/lib/src/filenames.dart
deleted file mode 100644
index 32aca5374e2a00286af112f15b79aa18e1d5aa44..0000000000000000000000000000000000000000
--- a/pkg/compiler/lib/src/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 | « pkg/compiler/lib/src/enqueue.dart ('k') | pkg/compiler/lib/src/hash/sha1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698