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

Unified Diff: runtime/lib/mirrors_impl.dart

Issue 23531037: Remove unreachable code in mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/mirrors_impl.dart
diff --git a/runtime/lib/mirrors_impl.dart b/runtime/lib/mirrors_impl.dart
index d7c33faba68168ebaba6ef77417799f9476f318b..e05ae2f242cb2eef5c3d19dd7bd1bfa0d6290d5b 100644
--- a/runtime/lib/mirrors_impl.dart
+++ b/runtime/lib/mirrors_impl.dart
@@ -463,12 +463,7 @@ class _LocalClassMirrorImpl extends _LocalObjectMirrorImpl
// dynamic, void and the function types have their names set eagerly in the
rmacnak 2013/09/10 23:38:51 Comment out-of-sync. All but anonymous mixin appl
Michael Lippautz (Google) 2013/09/11 01:01:16 Done.
// constructor.
if(_simpleName == null) {
- var simpleString = _name(_reflectee);
- if (simpleString.contains('&')) {
- _simpleName = this._mixinApplicationName;
- } else {
- _simpleName = _s(simpleString);
- }
+ _simpleName = this._mixinApplicationName;
}
return _simpleName;
}
@@ -718,9 +713,6 @@ class _LocalClassMirrorImpl extends _LocalObjectMirrorImpl
int get hashCode => simpleName.hashCode;
- static _name(reflectee)
- native "ClassMirror_name";
-
static _library(reflectee)
native "ClassMirror_library";
« no previous file with comments | « runtime/lib/mirrors.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698