refactor: Reduce visibility of methods

This commit is contained in:
oSumAtrIX 2023-11-12 16:49:06 +01:00
parent 9f1986960c
commit 12acb2d561
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -70,7 +70,7 @@ object WideSearchbarPatch : BytecodePatch(
* @param fromFingerprint The fingerprint to walk the method on.
* @return The [MutableMethod] which was walked on.
*/
fun BytecodeContext.walkMutable(index: Int, fromFingerprint: MethodFingerprint) =
private fun BytecodeContext.walkMutable(index: Int, fromFingerprint: MethodFingerprint) =
fromFingerprint.result?.let {
toMethodWalker(it.method).nextMethod(index, true).getMethod() as MutableMethod
} ?: throw fromFingerprint.exception
@ -79,7 +79,7 @@ object WideSearchbarPatch : BytecodePatch(
/**
* Injects instructions required for certain methods.
*/
fun MutableMethod.injectSearchBarHook() {
private fun MutableMethod.injectSearchBarHook() {
addInstructions(
implementation!!.instructions.size - 1,
"""