mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
Remove unused function
This commit is contained in:
committed by
Ian Lynagh
parent
f6db91f294
commit
1d47ea30eb
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user