| Index: editor/util/plugins/com.google.dart.java2dart/resources/test_support_include.dart
|
| diff --git a/editor/util/plugins/com.google.dart.java2dart/resources/test_support_include.dart b/editor/util/plugins/com.google.dart.java2dart/resources/test_support_include.dart
|
| index 8a60c1f0572b0d3c6d75b45b899d6a51aeeb59b6..92adff79591670ef8f2aeba925e8745f3ca2db2b 100644
|
| --- a/editor/util/plugins/com.google.dart.java2dart/resources/test_support_include.dart
|
| +++ b/editor/util/plugins/com.google.dart.java2dart/resources/test_support_include.dart
|
| @@ -40,31 +40,3 @@ class TestSource implements Source {
|
| throw new UnsupportedOperationException();
|
| }
|
| }
|
| -
|
| -/**
|
| - * Wrapper around [Function] which should be called with "target" and "arguments".
|
| - */
|
| -class MethodTrampoline {
|
| - int parameterCount;
|
| - Function trampoline;
|
| - MethodTrampoline(this.parameterCount, this.trampoline);
|
| - Object invoke(target, List arguments) {
|
| - if (arguments.length != parameterCount) {
|
| - throw new IllegalArgumentException("${arguments.length} != $parameterCount");
|
| - }
|
| - switch (parameterCount) {
|
| - case 0:
|
| - return trampoline(target);
|
| - case 1:
|
| - return trampoline(target, arguments[0]);
|
| - case 2:
|
| - return trampoline(target, arguments[0], arguments[1]);
|
| - case 3:
|
| - return trampoline(target, arguments[0], arguments[1], arguments[2]);
|
| - case 4:
|
| - return trampoline(target, arguments[0], arguments[1], arguments[2], arguments[3]);
|
| - default:
|
| - throw new IllegalArgumentException("Not implemented for > 4 arguments");
|
| - }
|
| - }
|
| -}
|
|
|