Permalink
Browse files

Remove duplicate signature args utility.

  • Loading branch information...
1 parent 165c7b9 commit b90a94d158c58fa595e0a16f5f159bd8a47f4613 @headius headius committed Mar 15, 2013
@@ -78,23 +78,6 @@
public static final String IRUBYOBJECT = p(IRubyObject.class);
public static final boolean VERIFY_CLASSFILES = false;
- public static Class[] getStaticMethodArgs(Class target, int args) {
- switch (args) {
- case 0:
- return new Class[] {target, ThreadContext.class, IRubyObject.class, Block.class};
- case 1:
- return new Class[] {target, ThreadContext.class, IRubyObject.class, IRubyObject.class, Block.class};
- case 2:
- return new Class[] {target, ThreadContext.class, IRubyObject.class, IRubyObject.class, IRubyObject.class, Block.class};
- case 3:
- return new Class[] {target, ThreadContext.class, IRubyObject.class, IRubyObject.class, IRubyObject.class, IRubyObject.class, Block.class};
- case 4:
- return new Class[] {target, ThreadContext.class, IRubyObject.class, IRubyObject[].class, Block.class};
- default:
- throw new RuntimeException("unsupported arity: " + args);
- }
- }
-
public static String getStaticMethodSignature(String classname, int args) {
switch (args) {
case 0:
@@ -74,7 +74,7 @@ public JittedMethod(RubyModule implementationClass, StaticScope staticScope, Scr
jitCompiledScript.getClass(),
"__file__",
IRubyObject.class,
- StandardASMCompiler.getStaticMethodArgs(jitCompiledScript.getClass(), argCount), true);
+ StandardASMCompiler.getStaticMethodParams(jitCompiledScript.getClass(), argCount), true);
}
public StaticScope getStaticScope() {

0 comments on commit b90a94d

Please sign in to comment.