From 679e0228a82d4905c6b1f1e306563c88d3b2399f Mon Sep 17 00:00:00 2001 From: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> Date: Thu, 19 Jan 2023 08:30:47 -0800 Subject: [PATCH] Remove debug Signed-off-by: naturecodevoid <44983869+naturecodevoid@users.noreply.github.com> --- AltStoreCore/Model/InstalledApp.swift | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/AltStoreCore/Model/InstalledApp.swift b/AltStoreCore/Model/InstalledApp.swift index a27ce44f..77c49513 100644 --- a/AltStoreCore/Model/InstalledApp.swift +++ b/AltStoreCore/Model/InstalledApp.swift @@ -64,26 +64,14 @@ public class InstalledApp: NSManagedObject, InstalledAppProtocol if self.storeApp == nil { return false } if self.storeApp!.latestVersion == nil { return false } - #if DEBUG - print("Comparing versions for app `\(self.bundleIdentifier)` between currentVersion `\(self.version)` and latestVersion `\(self.storeApp!.latestVersion!.version)`") - #endif - let currentVersion = SemanticVersion(self.version) let latestVersion = SemanticVersion(self.storeApp!.latestVersion!.version) if currentVersion == nil || latestVersion == nil { - #if DEBUG - print("One of the versions is not valid SemVer, using fallback method") - #endif - - // This should compare each character + // One of the versions is not valid SemVer, fall back to comparing the version strings by character return self.version < self.storeApp!.latestVersion!.version } - #if DEBUG - print("Both versions are valid SemVer, using SemVer comparison") - #endif - return currentVersion! < latestVersion! }