Skip to content

Commit

Permalink
Remove old code from KSCrashMonitor_System.m
Browse files Browse the repository at this point in the history
  • Loading branch information
GLinnik21 committed May 3, 2024
1 parent 4a26d80 commit 3815ec5
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions Sources/KSCrashRecording/Monitors/KSCrashMonitor_System.m
Original file line number Diff line number Diff line change
Expand Up @@ -369,16 +369,7 @@ static bool isSimulatorBuild(void)
{
NSString* path = nil;
#if KSCRASH_HOST_IOS
// For iOS 6 compatibility
#ifdef __IPHONE_11_0
if (@available(iOS 7, *)) {
#else
if ([[UIDevice currentDevice].systemVersion compare:@"7" options:NSNumericSearch] != NSOrderedAscending) {
#endif
#endif
path = [NSBundle mainBundle].appStoreReceiptURL.path;
#if KSCRASH_HOST_IOS
}
path = [NSBundle mainBundle].appStoreReceiptURL.path;
#endif
return path;
}
Expand Down Expand Up @@ -512,11 +503,7 @@ static void initialize(void)
#if KSCRASH_HOST_WATCH
g_systemData.systemName = "watchOS";
#endif
NSOperatingSystemVersion version = {0, 0, 0};
if(@available(macOS 10.10, *))
{
version = [NSProcessInfo processInfo].operatingSystemVersion;
}
NSOperatingSystemVersion version = [NSProcessInfo processInfo].operatingSystemVersion;;
NSString* systemVersion;
if(version.patchVersion == 0)
{
Expand Down

0 comments on commit 3815ec5

Please sign in to comment.