From 0dfdaaa56bcc987ef5cf30a9e5e173cf127fa81d Mon Sep 17 00:00:00 2001 From: Dhiogo Brustolin Date: Thu, 11 May 2023 11:57:23 +0200 Subject: [PATCH] chore: Remove remaining fishhook code (#3020) Removed the remaining async stitch code --- .../iOS-ObjectiveC/Base.lproj/Main.storyboard | 15 +- .../iOS-ObjectiveC/ViewController.m | 15 - .../iOS-Swift/Base.lproj/Main.storyboard | 10 +- .../iOS-Swift/ErrorsViewController.swift | 19 -- Sentry.xcodeproj/project.pbxproj | 16 - Sources/Sentry/SentryCrashWrapper.m | 15 - Sources/Sentry/SentryStacktraceBuilder.m | 1 - Sources/Sentry/SentryThreadInspector.m | 1 - Sources/Sentry/include/SentryCrashWrapper.h | 4 - .../SentryCrashMonitor_CPPException.cpp | 1 - .../SentryCrashMonitor_MachException.c | 1 - .../Monitors/SentryCrashMonitor_NSException.m | 1 - .../Monitors/SentryCrashMonitor_Signal.c | 1 - .../SentryCrash/Recording/SentryCrashReport.c | 3 - .../Tools/SentryCrashMachineContext.c | 1 - .../Recording/Tools/SentryCrashStackCursor.c | 34 -- .../Recording/Tools/SentryCrashStackCursor.h | 16 - .../Tools/SentryCrashStackCursor_Backtrace.c | 7 +- .../SentryCrashStackCursor_MachineContext.c | 10 +- .../Tools/SentryCrashStackCursor_SelfThread.c | 2 - .../SentryCrash/Recording/Tools/SentryHook.c | 303 ------------------ .../SentryCrash/Recording/Tools/SentryHook.h | 51 --- .../SentryCrash/Recording/Tools/fishhook.c | 268 ---------------- .../SentryCrash/Recording/Tools/fishhook.h | 73 ----- 24 files changed, 7 insertions(+), 861 deletions(-) delete mode 100644 Sources/SentryCrash/Recording/Tools/SentryHook.c delete mode 100644 Sources/SentryCrash/Recording/Tools/SentryHook.h delete mode 100644 Sources/SentryCrash/Recording/Tools/fishhook.c delete mode 100644 Sources/SentryCrash/Recording/Tools/fishhook.h diff --git a/Samples/iOS-ObjectiveC/iOS-ObjectiveC/Base.lproj/Main.storyboard b/Samples/iOS-ObjectiveC/iOS-ObjectiveC/Base.lproj/Main.storyboard index f25f62682b3..2c900cc5bf7 100644 --- a/Samples/iOS-ObjectiveC/iOS-ObjectiveC/Base.lproj/Main.storyboard +++ b/Samples/iOS-ObjectiveC/iOS-ObjectiveC/Base.lproj/Main.storyboard @@ -1,9 +1,9 @@ - + - + @@ -18,13 +18,13 @@ - + - diff --git a/Samples/iOS-ObjectiveC/iOS-ObjectiveC/ViewController.m b/Samples/iOS-ObjectiveC/iOS-ObjectiveC/ViewController.m index d2405d68421..05a7f43858e 100644 --- a/Samples/iOS-ObjectiveC/iOS-ObjectiveC/ViewController.m +++ b/Samples/iOS-ObjectiveC/iOS-ObjectiveC/ViewController.m @@ -124,21 +124,6 @@ - (IBAction)crash:(id)sender [SentrySDK crash]; } -- (IBAction)asyncCrash:(id)sender -{ - dispatch_async(dispatch_get_main_queue(), ^{ [self asyncCrash1]; }); -} - -- (void)asyncCrash1 -{ - dispatch_async(dispatch_get_main_queue(), ^{ [self asyncCrash2]; }); -} - -- (void)asyncCrash2 -{ - dispatch_async(dispatch_get_main_queue(), ^{ [SentrySDK crash]; }); -} - - (IBAction)oomCrash:(id)sender { dispatch_async(dispatch_get_main_queue(), ^{ diff --git a/Samples/iOS-Swift/iOS-Swift/Base.lproj/Main.storyboard b/Samples/iOS-Swift/iOS-Swift/Base.lproj/Main.storyboard index bd6545e8ca9..83e7383e9f7 100644 --- a/Samples/iOS-Swift/iOS-Swift/Base.lproj/Main.storyboard +++ b/Samples/iOS-Swift/iOS-Swift/Base.lproj/Main.storyboard @@ -364,21 +364,13 @@ -