chore: Remove deprecated code

This commit is contained in:
inotia00 2025-01-31 20:30:12 +09:00
parent a50eed6466
commit 7b7a057830
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,5 @@
package app.revanced.extension.music.patches.general; package app.revanced.extension.music.patches.general;
import static app.revanced.extension.music.utils.ExtendedUtils.isSpoofingToLessThan;
import static app.revanced.extension.shared.utils.Utils.hideViewBy0dpUnderCondition; import static app.revanced.extension.shared.utils.Utils.hideViewBy0dpUnderCondition;
import android.app.AlertDialog; import android.app.AlertDialog;
@ -161,7 +160,7 @@ public class GeneralPatch {
public static String restoreOldStyleLibraryShelf(final String browseId) { public static String restoreOldStyleLibraryShelf(final String browseId) {
final boolean oldStyleLibraryShelfEnabled = final boolean oldStyleLibraryShelfEnabled =
Settings.RESTORE_OLD_STYLE_LIBRARY_SHELF.get() || isSpoofingToLessThan("5.38.00"); Settings.RESTORE_OLD_STYLE_LIBRARY_SHELF.get();
return oldStyleLibraryShelfEnabled && browseId.equals("FEmusic_library_landing") return oldStyleLibraryShelfEnabled && browseId.equals("FEmusic_library_landing")
? "FEmusic_liked" ? "FEmusic_liked"
: browseId; : browseId;

View File

@ -12,6 +12,7 @@ import app.revanced.extension.shared.utils.PackageUtils;
public class ExtendedUtils extends PackageUtils { public class ExtendedUtils extends PackageUtils {
@SuppressWarnings("unused")
public static boolean isSpoofingToLessThan(@NonNull String versionName) { public static boolean isSpoofingToLessThan(@NonNull String versionName) {
if (!Settings.SPOOF_APP_VERSION.get()) if (!Settings.SPOOF_APP_VERSION.get())
return false; return false;