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

Unified Diff: pkg/analysis_server/lib/src/services/correction/util.dart

Issue 2616163002: Remove REPLACE_IMPORT_URI Quick Fix. (Closed)
Patch Set: Created 3 years, 11 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: pkg/analysis_server/lib/src/services/correction/util.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/util.dart b/pkg/analysis_server/lib/src/services/correction/util.dart
index dc8b040d8df575e478d331e8d3d1c5e0f05c78bf..82217a2d4d24ea9c19fa2ee91e855de36d1123f3 100644
--- a/pkg/analysis_server/lib/src/services/correction/util.dart
+++ b/pkg/analysis_server/lib/src/services/correction/util.dart
@@ -158,25 +158,6 @@ Expression climbPropertyAccess(AstNode node) {
}
/**
- * Attempts to convert the given absolute path into an absolute URI, such as
- * "dart" or "package" URI.
- *
- * [context] - the [AnalysisContext] to work in.
- * [path] - the absolute path, not `null`.
- *
- * Returns the absolute (non-file) URI or `null`.
- */
-String findNonFileUri(AnalysisContext context, String path) {
- Source fileSource =
- new NonExistingSource(path, toUri(path), UriKind.FILE_URI);
- Uri uri = context.sourceFactory.restoreUri(fileSource);
- if (uri == null || uri.scheme == 'file') {
- return null;
- }
- return uri.toString();
-}
-
-/**
* Returns the EOL to use for the given [code].
*/
String getCodeEndOfLine(String code) {

Powered by Google App Engine
This is Rietveld 408576698