Chromium Code Reviews| Index: lib/runtime/dart_runtime.dart |
| diff --git a/lib/runtime/dart_runtime.dart b/lib/runtime/dart_runtime.dart |
| index 7b6ec4f83cd72dbb3c2f4354075f407af8ae9ad3..834ee8a9cba0c88cd3e5932934ffbb02bcb536e9 100644 |
| --- a/lib/runtime/dart_runtime.dart |
| +++ b/lib/runtime/dart_runtime.dart |
| @@ -128,20 +128,6 @@ Arity getArity(Function f) { |
| return new Arity._internal(normal, optionalPositional); |
| } |
| -bool _isFunctionSubType(TypeMirror t1, TypeMirror t2) { |
| - // Function types follow the standard non-Dart rule: |
| - // - contravariant on param types |
| - // - covariant on return type |
| - final f1 = t1 as FunctionTypeMirror; |
| - final f2 = t2 as FunctionTypeMirror; |
| - |
| - final params1 = f1.parameters; |
| - final params2 = f2.parameters; |
| - final ret1 = f1.returnType; |
| - final ret2 = f2.returnType; |
| - return _isFunctionSubTypeHelper(ret1, params1, ret2, params2); |
| -} |
| - |
| bool _isFunctionSubTypeHelper(TypeMirror ret1, List<ParameterMirror> params1, |
|
Jennifer Messerly
2015/02/27 16:54:12
on second thought, I should probably rename this _
|
| TypeMirror ret2, List<ParameterMirror> params2) { |
| if (!_isSubType(ret1, ret2)) { |