refactor: simplify loading patches (#172)

This commit is contained in:
Jim Man
2023-05-14 02:55:26 +03:00
committed by GitHub
parent 7f02b8df48
commit 239ea0bcaa
3 changed files with 9 additions and 35 deletions

View File

@@ -54,17 +54,6 @@ class BytecodeContext internal constructor(classes: MutableList<ClassDef>) : Con
}
return proxy
}
private companion object {
inline fun <reified T> Iterable<T>.find(predicate: (T) -> Boolean): T? {
for (element in this) {
if (predicate(element)) {
return element
}
}
return null
}
}
}
/**