From 12acb2d561389bfd5c6e2e773ef32b4c011128de Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 12 Nov 2023 16:49:06 +0100 Subject: [PATCH] refactor: Reduce visibility of methods --- .../patches/youtube/layout/searchbar/WideSearchbarPatch.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/searchbar/WideSearchbarPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/searchbar/WideSearchbarPatch.kt index d2d19c301..d41823998 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/searchbar/WideSearchbarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/searchbar/WideSearchbarPatch.kt @@ -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, """