Removes unnecessary @available annotations

This commit is contained in:
Riley Testut
2023-03-02 17:02:11 -06:00
committed by Magesh K
parent ed1365281f
commit 06d28ca663
14 changed files with 0 additions and 24 deletions

View File

@@ -119,7 +119,6 @@ final class AppDelegate: UIResponder, UIApplicationDelegate {
}
}
@available(iOS 13, *)
extension AppDelegate
{
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration

View File

@@ -8,8 +8,6 @@
import Intents
// Requires iOS 14 in-app intent handling.
@available(iOS 14, *)
extension INInteraction
{
static func refreshAllApps() -> INInteraction

View File

@@ -29,7 +29,6 @@ extension UIDevice
}
}
@available(iOS 14, *)
var supportsFugu14: Bool {
#if targetEnvironment(simulator)
return true
@@ -40,7 +39,6 @@ extension UIDevice
#endif
}
@available(iOS 14, *)
var isUntetheredJailbreakRequired: Bool {
let ios14_4 = OperatingSystemVersion(majorVersion: 14, minorVersion: 4, patchVersion: 0)

View File

@@ -16,7 +16,6 @@ private extension SystemSoundID
static let tryAgain = SystemSoundID(1102)
}
@available(iOS 13, *)
extension UIDevice
{
enum VibrationPattern
@@ -26,7 +25,6 @@ extension UIDevice
}
}
@available(iOS 13, *)
extension UIDevice
{
var isVibrationSupported: Bool {

View File

@@ -103,7 +103,6 @@ final class IntentHandler: NSObject, RefreshAllIntentHandling
}
}
@available(iOS 14, *)
private extension IntentHandler
{
func finish(_ intent: RefreshAllIntent, response: RefreshAllIntentResponse)

View File

@@ -94,7 +94,6 @@ final class AppManager
self.progressLock.deallocate()
}
@available(iOS 13, *)
func prepareSubscriptions()
{
/// Every time refreshProgress is changed, update all InstalledApps in memory
@@ -704,7 +703,6 @@ extension AppManager
self.run([removeAppOperation, removeAppBackupOperation], context: authenticationContext)
}
@available(iOS 14, *)
func enableJIT(for installedApp: InstalledApp, completionHandler: @escaping (Result<Void, Error>) -> Void)
{
final class Context: OperationContext, EnableJITContext
@@ -733,7 +731,6 @@ extension AppManager
self.run([enableJITOperation], context: context, requiresSerialQueue: true)
}
@available(iOS 14.0, *)
func patch(resignedApp: ALTApplication, presentingViewController: UIViewController, context authContext: AuthenticatedOperationContext, completionHandler: @escaping (Result<InstalledApp, Error>) -> Void) -> PatchAppOperation
{
final class Context: InstallAppOperationContext, PatchAppContext

View File

@@ -1388,7 +1388,6 @@ private extension MyAppsViewController
}
}
@available(iOS 14, *)
func enableJIT(for installedApp: InstalledApp)
{
@@ -1641,7 +1640,6 @@ extension MyAppsViewController
}
}
@available(iOS 13.0, *)
extension MyAppsViewController
{
private func actions(for installedApp: InstalledApp) -> [UIMenuElement]

View File

@@ -15,7 +15,6 @@ import AltStoreCore
import AltSign
import Roxas
@available(iOS 14, *)
protocol PatchAppContext
{
var bundleIdentifier: String { get }
@@ -146,7 +145,6 @@ private let ALTFragmentZipCallback: @convention(c) (UInt32) -> Void = { (percent
progress.completedUnitCount = Int64(percentageComplete)
}
@available(iOS 14, *)
private extension PatchAppOperation
{
func fetchOTAUpdate() -> AnyPublisher<OTAUpdate, Error>

View File

@@ -13,7 +13,6 @@ import AltStoreCore
import AltSign
import Roxas
@available(iOS 14.0, *)
extension PatchViewController
{
enum Step
@@ -99,7 +98,6 @@ final class PatchViewController: UIViewController
}
}
@available(iOS 14.0, *)
private extension PatchViewController
{
func update()
@@ -212,7 +210,6 @@ private extension PatchViewController
}
}
@available(iOS 14.0, *)
private extension PatchViewController
{
@IBAction func performButtonAction()
@@ -254,7 +251,6 @@ private extension PatchViewController
}
}
@available(iOS 14.0, *)
private extension PatchViewController
{
func startProcess()

View File

@@ -75,7 +75,6 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate
}
}
@available(iOS 13.0, *)
private extension SceneDelegate
{
func open(_ context: UIOpenURLContext)

View File

@@ -390,7 +390,6 @@ private extension SettingsViewController
}
}
@available(iOS 14, *)
@IBAction func addRefreshAppsShortcut()
{
guard let shortcut = INShortcut(intent: INInteraction.refreshAllApps().intent) else { return }

View File

@@ -586,7 +586,6 @@ extension SourcesViewController: UICollectionViewDelegateFlowLayout
}
}
@available(iOS 13, *)
extension SourcesViewController
{
override func collectionView(_ collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration?

View File

@@ -9,7 +9,6 @@
import Intents
import AltStoreCore
@available(iOS 14, *)
public class ViewAppIntentHandler: NSObject, ViewAppIntentHandling
{
public func provideAppOptionsCollection(for intent: ViewAppIntent, with completion: @escaping (INObjectCollection<App>?, Error?) -> Void)

View File

@@ -425,7 +425,6 @@ private extension PatreonAPI
}
}
@available(iOS 13.0, *)
extension PatreonAPI: ASWebAuthenticationPresentationContextProviding
{
public func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor