Remove unused function

This commit is contained in:
Chris Smowton
2022-02-09 12:18:43 +00:00
committed by Ian Lynagh
parent f6db91f294
commit 1d47ea30eb

View File

@@ -1102,19 +1102,6 @@ open class KotlinFileExtractor(
return result
}
/**
* Returns true if EQEQ call `c` can be implemented by a Java-style `==` or `!=` test. This is true if both operands
* are primitives, or either is a null constant.
*/
fun isShallowEqualityTest(c: IrCall): Boolean {
val arg0 = c.getValueArgument(0)!!
val arg1 = c.getValueArgument(1)!!
return (arg0.type.isPrimitiveType(false) && arg1.type.isPrimitiveType(false))
|| arg0.isNullConst()
|| arg1.isNullConst()
}
fun extractCall(c: IrCall, callable: Label<out DbCallable>, parent: Label<out DbExprparent>, idx: Int, enclosingStmt: Label<out DbStmt>) {
with("call", c) {
fun isFunction(pkgName: String, className: String, fName: String, hasQuestionMark: Boolean? = false): Boolean {