Skip to content

Commit 1aa4754

Browse files
authored
ref: Remove some non-V9 code in SentryCrash (#6481)
1 parent e16fd46 commit 1aa4754

File tree

6 files changed

+0
-108
lines changed

6 files changed

+0
-108
lines changed

Sentry.xcodeproj/project.pbxproj

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -458,10 +458,7 @@
458458
7BA61CAD247BAA0B00C130A8 /* SentryDebugImageProviderInternal.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BA61CAC247BAA0B00C130A8 /* SentryDebugImageProviderInternal.m */; };
459459
7BA61CAF247BBF3C00C130A8 /* SentryDebugImageProviderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA61CAE247BBF3C00C130A8 /* SentryDebugImageProviderTests.swift */; };
460460
7BA61CB4247BC3EB00C130A8 /* SentryCrashBinaryImageProvider.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BA61CB3247BC3EB00C130A8 /* SentryCrashBinaryImageProvider.h */; };
461-
7BA61CB9247BC57B00C130A8 /* SentryCrashDefaultBinaryImageProvider.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BA61CB8247BC57B00C130A8 /* SentryCrashDefaultBinaryImageProvider.h */; };
462-
7BA61CBB247BC5D800C130A8 /* SentryCrashDefaultBinaryImageProvider.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BA61CBA247BC5D800C130A8 /* SentryCrashDefaultBinaryImageProvider.m */; };
463461
7BA61CBF247CEA8100C130A8 /* SentryFormatter.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BA61CBE247CEA8100C130A8 /* SentryFormatter.h */; settings = {ATTRIBUTES = (Private, ); }; };
464-
7BA61CC6247CFC5F00C130A8 /* SentryCrashDefaultBinaryImageProviderTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA61CC5247CFC5F00C130A8 /* SentryCrashDefaultBinaryImageProviderTests.swift */; };
465462
7BA61CC8247D125400C130A8 /* SentryDefaultThreadInspector.h in Headers */ = {isa = PBXBuildFile; fileRef = 7BA61CC7247D125400C130A8 /* SentryDefaultThreadInspector.h */; };
466463
7BA61CCA247D128B00C130A8 /* SentryDefaultThreadInspector.m in Sources */ = {isa = PBXBuildFile; fileRef = 7BA61CC9247D128B00C130A8 /* SentryDefaultThreadInspector.m */; };
467464
7BA61CCC247D14E600C130A8 /* SentryDefaultThreadInspectorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BA61CCB247D14E600C130A8 /* SentryDefaultThreadInspectorTests.swift */; };
@@ -1769,10 +1766,7 @@
17691766
7BA61CAC247BAA0B00C130A8 /* SentryDebugImageProviderInternal.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryDebugImageProviderInternal.m; sourceTree = "<group>"; };
17701767
7BA61CAE247BBF3C00C130A8 /* SentryDebugImageProviderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryDebugImageProviderTests.swift; sourceTree = "<group>"; };
17711768
7BA61CB3247BC3EB00C130A8 /* SentryCrashBinaryImageProvider.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryCrashBinaryImageProvider.h; path = include/SentryCrashBinaryImageProvider.h; sourceTree = "<group>"; };
1772-
7BA61CB8247BC57B00C130A8 /* SentryCrashDefaultBinaryImageProvider.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryCrashDefaultBinaryImageProvider.h; path = include/SentryCrashDefaultBinaryImageProvider.h; sourceTree = "<group>"; };
1773-
7BA61CBA247BC5D800C130A8 /* SentryCrashDefaultBinaryImageProvider.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryCrashDefaultBinaryImageProvider.m; sourceTree = "<group>"; };
17741769
7BA61CBE247CEA8100C130A8 /* SentryFormatter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryFormatter.h; path = include/HybridPublic/SentryFormatter.h; sourceTree = "<group>"; };
1775-
7BA61CC5247CFC5F00C130A8 /* SentryCrashDefaultBinaryImageProviderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryCrashDefaultBinaryImageProviderTests.swift; sourceTree = "<group>"; };
17761770
7BA61CC7247D125400C130A8 /* SentryDefaultThreadInspector.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryDefaultThreadInspector.h; path = include/SentryDefaultThreadInspector.h; sourceTree = "<group>"; };
17771771
7BA61CC9247D128B00C130A8 /* SentryDefaultThreadInspector.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryDefaultThreadInspector.m; sourceTree = "<group>"; };
17781772
7BA61CCB247D14E600C130A8 /* SentryDefaultThreadInspectorTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryDefaultThreadInspectorTests.swift; sourceTree = "<group>"; };
@@ -2893,8 +2887,6 @@
28932887
6344DDB71EC3115C00D9160D /* SentryCrashReportConverter.h */,
28942888
6344DDB81EC3115C00D9160D /* SentryCrashReportConverter.m */,
28952889
7BA61CB3247BC3EB00C130A8 /* SentryCrashBinaryImageProvider.h */,
2896-
7BA61CB8247BC57B00C130A8 /* SentryCrashDefaultBinaryImageProvider.h */,
2897-
7BA61CBA247BC5D800C130A8 /* SentryCrashDefaultBinaryImageProvider.m */,
28982890
7BA61CAC247BAA0B00C130A8 /* SentryDebugImageProviderInternal.m */,
28992891
6273513E2CBD14970021D100 /* SentryDebugImageProviderInternal.h */,
29002892
7BA61CBE247CEA8100C130A8 /* SentryFormatter.h */,
@@ -3366,7 +3358,6 @@
33663358
63FE71F020DA66EA00CDBAE8 /* XCTestCase+SentryCrash.h */,
33673359
63FE71DE20DA66E800CDBAE8 /* XCTestCase+SentryCrash.m */,
33683360
7BA61CAE247BBF3C00C130A8 /* SentryDebugImageProviderTests.swift */,
3369-
7BA61CC5247CFC5F00C130A8 /* SentryCrashDefaultBinaryImageProviderTests.swift */,
33703361
7BA61CCE247EB59500C130A8 /* SentryCrashUUIDConversionTests.swift */,
33713362
7BA61CCB247D14E600C130A8 /* SentryDefaultThreadInspectorTests.swift */,
33723363
7B5AB65C27E48E5200F1D1BA /* TestThreadInspector.swift */,
@@ -5291,7 +5282,6 @@
52915282
7BC5B6FA290BCDE500D99477 /* SentryHttpStatusCodeRange+Private.h in Headers */,
52925283
9286059529A5096600F96038 /* SentryGeo.h in Headers */,
52935284
7B98D7BC25FB607300C5A389 /* SentryWatchdogTerminationTracker.h in Headers */,
5294-
7BA61CB9247BC57B00C130A8 /* SentryCrashDefaultBinaryImageProvider.h in Headers */,
52955285
8E4E7C7D25DAB287006AB9E2 /* SentryTracer.h in Headers */,
52965286
7BC8523724588115005A70F0 /* SentryDataCategory.h in Headers */,
52975287
FAAB96482EA6843E0030A2DB /* SentryANRTrackerInternalDelegate.h in Headers */,
@@ -6018,7 +6008,6 @@
60186008
63FE714120DA4C1100CDBAE8 /* SentryCrashDate.c in Sources */,
60196009
D43B26DA2D70A612007747FD /* SentrySpanDataKey.m in Sources */,
60206010
63FE70DB20DA4C1000CDBAE8 /* SentryCrashMonitor_System.m in Sources */,
6021-
7BA61CBB247BC5D800C130A8 /* SentryCrashDefaultBinaryImageProvider.m in Sources */,
60226011
63FE713120DA4C1100CDBAE8 /* SentryCrashDynamicLinker.c in Sources */,
60236012
03F84D3527DD4191008FE43F /* SentryThreadHandle.cpp in Sources */,
60246013
0A2D8DA9289BC905008720F6 /* SentryViewHierarchyProviderHelper.m in Sources */,
@@ -6121,7 +6110,6 @@
61216110
7BF6505F292B77EC00BBA5A8 /* SentryMetricKitIntegrationTests.swift in Sources */,
61226111
628B45342DB8D5E700934391 /* SentryCrashCxaThrowSwapper_Tests.mm in Sources */,
61236112
629690532AD3E060000185FA /* SentryReachabilitySwiftTests.swift in Sources */,
6124-
7BA61CC6247CFC5F00C130A8 /* SentryCrashDefaultBinaryImageProviderTests.swift in Sources */,
61256113
7BBC827925DFD7D7005F1ED8 /* SentryInAppLogicTests.swift in Sources */,
61266114
7BD7299A2463EA4A00EA3610 /* SentryDateUtilTests.swift in Sources */,
61276115
626E2D4C2BEA0C37005596FE /* SentryEnabledFeaturesBuilderTests.swift in Sources */,

Sources/Sentry/SentryCrashDefaultBinaryImageProvider.m

Lines changed: 0 additions & 24 deletions
This file was deleted.

Sources/Sentry/include/SentryCrashDefaultBinaryImageProvider.h

Lines changed: 0 additions & 13 deletions
This file was deleted.

Sources/SentryCrash/Recording/Tools/SentryCrashDynamicLinker.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -480,26 +480,6 @@ getCrashInfo(const struct mach_header *header, SentryCrashBinaryImage *buffer)
480480
}
481481
}
482482

483-
#if !SDK_V9
484-
int
485-
sentrycrashdl_imageCount(void)
486-
{
487-
return (int)_dyld_image_count();
488-
}
489-
490-
bool
491-
sentrycrashdl_getBinaryImage(int index, SentryCrashBinaryImage *buffer, bool isCrash)
492-
{
493-
const struct mach_header *header = _dyld_get_image_header((unsigned)index);
494-
if (header == NULL) {
495-
return false;
496-
}
497-
498-
const char *imageName = _dyld_get_image_name((unsigned)index);
499-
return sentrycrashdl_getBinaryImageForHeader((const void *)header, imageName, buffer, isCrash);
500-
}
501-
#endif // !SDK_V9
502-
503483
void
504484
sentrycrashdl_getCrashInfo(uint64_t address, SentryCrashBinaryImage *buffer)
505485
{

Tests/SentryTests/SentryCrash/SentryCrashDefaultBinaryImageProviderTests.swift

Lines changed: 0 additions & 38 deletions
This file was deleted.

Tests/SentryTests/SentryTests-Bridging-Header.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
#import "SentryCrashCachedData.h"
7272
#import "SentryCrashCxaThrowSwapper.h"
7373
#import "SentryCrashDebug.h"
74-
#import "SentryCrashDefaultBinaryImageProvider.h"
7574
#import "SentryCrashDefaultMachineContextWrapper.h"
7675
#import "SentryCrashDoctor.h"
7776
#import "SentryCrashInstallation+Private.h"

0 commit comments

Comments
 (0)