Skip to content

Commit e16fd46

Browse files
authored
Remove some user feedback related v9 check (#6483)
1 parent 0bef3a6 commit e16fd46

File tree

13 files changed

+1
-63
lines changed

13 files changed

+1
-63
lines changed

CHANGELOG-v9.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Removes deprecated SentryDebugImageProvider class (#5598)
66
Makes app hang tracking V2 the default and removes the option to enable/disable it (#5615)
77
Removes segment property on SentryUser, SentryBaggage, and SentryTraceContext (#5638)
88
Removes public SentrySerializable conformance from many public models (#5636, #5840, #5982)
9-
Removes deprecated `setExtraValue` from SentrySpan (#5864)
109
Removes `integrations` property from `SentryOptions` (#5749)
1110
Makes `SentryEventDecodable` internal (#5808)
1211
The `span` property on `SentryScope` is now readonly (#5866)

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Makes `PreviewRedactOptions`, `SentryProfileOptions`, `SentryRedactViewHelper`, `SentryViewScreenshotOptions`, `SentryReplayOptions`, `SentryUserFeedbackConfiguration`, `SentryUserFeedbackFormConfiguration`, `SentryUserFeedbackThemeConfiguration`, `SentryUserFeedbackWidgetConfiguration`, `SentryFeedback`, and `SentryExperimentalOptions` `final` (#6365)
99
- Removes Decodable conformances from the public API of model classes (#5691)
1010
- Removes unused SentryLogLevel (#5591)
11+
- Removes deprecated `setExtraValue` from SentrySpan (#5864)
1112
- Removes deprecated getStoreEndpoint (#5591)
1213
- Removes deprecated useSpan function (#5591)
1314
- Removes deprecated user feedback API, this is replaced with the new feedback API (#5591)

Sources/Sentry/Public/SentrySpanProtocol.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,6 @@ NS_SWIFT_NAME(Span)
124124
*/
125125
- (void)setDataValue:(nullable id)value forKey:(NSString *)key NS_SWIFT_NAME(setData(value:key:));
126126

127-
#if !SDK_V9
128-
/**
129-
* Use @c setDataValue instead. This method calls @c setDataValue, was added by mistake, and will be
130-
* removed in a future version.
131-
*/
132-
- (void)setExtraValue:(nullable id)value
133-
forKey:(NSString *)key DEPRECATED_ATTRIBUTE NS_SWIFT_NAME(setExtra(value:key:));
134-
#endif // !SDK_V9
135-
136127
/**
137128
* Removes a data value.
138129
*/

Sources/Sentry/SentryDataCategoryMapper.m

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
NSString *const kSentryDataCategoryNameSession = @"session";
1212
NSString *const kSentryDataCategoryNameTransaction = @"transaction";
1313
NSString *const kSentryDataCategoryNameAttachment = @"attachment";
14-
#if !SDK_V9
15-
NSString *const kSentryDataCategoryNameUserFeedback = @"user_report";
16-
#endif // !SDK_V9
1714
NSString *const kSentryDataCategoryNameProfile = @"profile";
1815
NSString *const kSentryDataCategoryNameProfileChunk = @"profile_chunk_ui";
1916
NSString *const kSentryDataCategoryNameReplay = @"replay";
@@ -95,11 +92,6 @@
9592
if ([value isEqualToString:kSentryDataCategoryNameAttachment]) {
9693
return kSentryDataCategoryAttachment;
9794
}
98-
#if !SDK_V9
99-
if ([value isEqualToString:kSentryDataCategoryNameUserFeedback]) {
100-
return kSentryDataCategoryUserFeedback;
101-
}
102-
#endif // !SDK_V9
10395
if ([value isEqualToString:kSentryDataCategoryNameProfile]) {
10496
return kSentryDataCategoryProfile;
10597
}
@@ -142,10 +134,6 @@
142134
return kSentryDataCategoryNameTransaction;
143135
case kSentryDataCategoryAttachment:
144136
return kSentryDataCategoryNameAttachment;
145-
#if !SDK_V9
146-
case kSentryDataCategoryUserFeedback:
147-
return kSentryDataCategoryNameUserFeedback;
148-
#endif // !SDK_V9
149137
case kSentryDataCategoryProfile:
150138
return kSentryDataCategoryNameProfile;
151139
case kSentryDataCategoryProfileChunk:

Sources/Sentry/SentryNoOpSpan.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ - (void)setDataValue:(nullable id)value forKey:(NSString *)key
4343
{
4444
}
4545

46-
- (void)setExtraValue:(nullable id)value forKey:(NSString *)key
47-
{
48-
}
49-
5046
- (void)removeDataForKey:(NSString *)key
5147
{
5248
}

Sources/Sentry/SentrySpan.m

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,6 @@ - (void)setDataValue:(nullable id)value forKey:(NSString *)key
195195
}
196196
}
197197

198-
#if !SDK_V9
199-
- (void)setExtraValue:(nullable id)value forKey:(NSString *)key
200-
{
201-
[self setDataValue:value forKey:key];
202-
}
203-
#endif // !SDK_V9
204-
205198
- (void)removeDataForKey:(NSString *)key
206199
{
207200
@synchronized(_data) {

Sources/Sentry/include/SentryDataCategoryMapper.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ FOUNDATION_EXPORT NSString *const kSentryDataCategoryNameError;
88
FOUNDATION_EXPORT NSString *const kSentryDataCategoryNameSession;
99
FOUNDATION_EXPORT NSString *const kSentryDataCategoryNameTransaction;
1010
FOUNDATION_EXPORT NSString *const kSentryDataCategoryNameAttachment;
11-
FOUNDATION_EXPORT NSString *const kSentryDataCategoryNameUserFeedback;
1211
FOUNDATION_EXPORT NSString *const kSentryDataCategoryNameProfile;
1312
FOUNDATION_EXPORT NSString *const kSentryDataCategoryNameProfileChunk;
1413
FOUNDATION_EXPORT NSString *const kSentryDataCategoryNameReplay;

Sources/Sentry/include/SentryNoOpSpan.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ SENTRY_NO_INIT
1515
@property (nullable, readonly) NSDictionary<NSString *, id> *data;
1616
@property (readonly) NSDictionary<NSString *, NSString *> *tags;
1717

18-
#if !SDK_V9
19-
- (void)setExtraValue:(nullable id)value forKey:(NSString *)key DEPRECATED_ATTRIBUTE;
20-
#endif // !SDK_V9
2118
@end
2219

2320
NS_ASSUME_NONNULL_END

Sources/Sentry/include/SentrySpan.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@ SENTRY_NO_INIT
111111
#endif // SENTRY_HAS_UIKIT
112112
;
113113

114-
#if !SDK_V9
115-
- (void)setExtraValue:(nullable id)value forKey:(NSString *)key DEPRECATED_ATTRIBUTE;
116-
#endif // !SDK_V9
117114
@end
118115

119116
NS_ASSUME_NONNULL_END

Sources/Swift/Helper/SentryEnvelopeItemType.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
@_spi(Private) @objcMembers public final class SentryEnvelopeItemTypes: NSObject {
66
public static let event = "event"
77
public static let session = "session"
8-
#if !SDK_V9
9-
public static let userFeedback = "user_report"
10-
#endif
118
public static let feedback = "feedback"
129
public static let transaction = "transaction"
1310
public static let attachment = "attachment"

0 commit comments

Comments
 (0)