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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/code/ExtractUtils.java

Issue 11260031: Issue 6202. Remove support for 'Dynamic'. Add Clean Up to rename to 'dynamic'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/code/ExtractUtils.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/code/ExtractUtils.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/code/ExtractUtils.java
index 2b59d33b50b32294aa7f501bfbbfe128e06fc69f..415152434f2a28344413c117780ccf6c236a77d0 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/code/ExtractUtils.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/internal/corext/refactoring/code/ExtractUtils.java
@@ -25,7 +25,6 @@ import com.google.dart.compiler.ast.DartStatement;
import com.google.dart.compiler.ast.DartUnit;
import com.google.dart.compiler.common.HasSourceInfo;
import com.google.dart.compiler.common.SourceInfo;
-import com.google.dart.compiler.parser.DartParser;
import com.google.dart.compiler.parser.DartScanner;
import com.google.dart.compiler.parser.Token;
import com.google.dart.compiler.type.Type;
@@ -114,9 +113,6 @@ public class ExtractUtils {
if ("dynamic".equals(typeSource)) {
return null;
}
- if (DartParser.DYNAMIC_KEYWORD_DEPRECATED.equals(typeSource)) {
- return null;
- }
return typeSource;
}
@@ -127,12 +123,6 @@ public class ExtractUtils {
String typeSource = type.toString();
typeSource = StringUtils.replace(typeSource, "<dynamic>", "");
typeSource = StringUtils.replace(typeSource, "<dynamic, dynamic>", "");
- typeSource = StringUtils.replace(
- typeSource,
- "<" + DartParser.DYNAMIC_KEYWORD_DEPRECATED + ">",
- "");
- typeSource = StringUtils.replace(typeSource, "<" + DartParser.DYNAMIC_KEYWORD_DEPRECATED + ", "
- + DartParser.DYNAMIC_KEYWORD_DEPRECATED + ">", "");
return typeSource;
}

Powered by Google App Engine
This is Rietveld 408576698