Get rid of redundant intrinsic

Also drop 'safe' parameter from TypeIntrinsics.checkcast,
because it's supposed to work as JVM checkcast (i.e. accepting nulls)
This commit is contained in:
Denis Zharkov
2015-12-28 08:39:46 +03:00
parent 39bbd7c795
commit 87b6374351
3 changed files with 21 additions and 29 deletions
@@ -361,12 +361,4 @@ public class TypeIntrinsics {
}
return obj;
}
public static Object beforeSafeCheckcastToFunctionOfArity(Object obj, int arity) {
// TODO should we instead inline bytecode for this in TypeIntrinsics.kt?
if (obj == null || !isFunctionOfArity(obj, arity)) {
return null;
}
return obj;
}
}