From a312f7620816694543e10b9e02e208ab468746a1 Mon Sep 17 00:00:00 2001 From: Andrew McKnight Date: Fri, 18 Aug 2023 12:59:59 -0800 Subject: [PATCH] ref: convert SentryScope (Private) category to an interface extension --- Sources/Sentry/SentryScope.m | 18 +----------------- Sources/Sentry/include/SentryScope+Private.h | 4 ++-- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/Sources/Sentry/SentryScope.m b/Sources/Sentry/SentryScope.m index 7d58b407920..5888c17d41f 100644 --- a/Sources/Sentry/SentryScope.m +++ b/Sources/Sentry/SentryScope.m @@ -1,4 +1,3 @@ -#import "SentryScope.h" #import "NSMutableDictionary+Sentry.h" #import "SentryAttachment+Private.h" #import "SentryBreadcrumb.h" @@ -7,6 +6,7 @@ #import "SentryGlobalEventProcessor.h" #import "SentryLevelMapper.h" #import "SentryLog.h" +#import "SentryScope+Private.h" #import "SentryScopeObserver.h" #import "SentrySession.h" #import "SentrySpan.h" @@ -19,11 +19,6 @@ @interface SentryScope () -/** - * Set global user -> thus will be sent with every event - */ -@property (atomic, strong) SentryUser *_Nullable userObject; - /** * Set global tags -> these will be sent with every event */ @@ -34,12 +29,6 @@ */ @property (atomic, strong) NSMutableDictionary *extraDictionary; -/** - * used to add values in event context. - */ -@property (atomic, strong) - NSMutableDictionary *> *contextDictionary; - /** * Contains the breadcrumbs which will be sent with the event */ @@ -50,11 +39,6 @@ */ @property (atomic, copy) NSString *_Nullable distString; -/** - * The environment used in this scope. - */ -@property (atomic, copy) NSString *_Nullable environmentString; - /** * Set the fingerprint of an event to determine the grouping */ diff --git a/Sources/Sentry/include/SentryScope+Private.h b/Sources/Sentry/include/SentryScope+Private.h index c06499ea4a7..3c012295e4e 100644 --- a/Sources/Sentry/include/SentryScope+Private.h +++ b/Sources/Sentry/include/SentryScope+Private.h @@ -8,9 +8,9 @@ NS_ASSUME_NONNULL_BEGIN @interface -SentryScope (Private) +SentryScope () -@property (atomic, copy, readonly, nullable) NSString *environmentString; +@property (atomic, copy, nullable) NSString *environmentString; @property (atomic, strong, readonly) NSArray *attachments;