Skip to content

Commit 02ce8d1

Browse files
committed
Revert "Re-added credits errors"
This reverts commit 7381b20.
1 parent 7381b20 commit 02ce8d1

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

BranchSDK/NSError+Branch.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ NS_ASSUME_NONNULL_BEGIN
1919
typedef NS_ENUM(NSInteger, BNCErrorCode) {
2020
BNCInitError = 1000,
2121
BNCDuplicateResourceError = 1001,
22-
BNCRedeemCreditsError = 1002, //Deprecated
2322
BNCBadRequestError = 1003,
2423
BNCServerProblemError = 1004,
2524
BNCNilLogError = 1005, // Not used at the moment.
@@ -29,7 +28,6 @@ typedef NS_ENUM(NSInteger, BNCErrorCode) {
2928
BNCContentIdentifierError = 1009,
3029
BNCSpotlightNotAvailableError = 1010,
3130
BNCSpotlightTitleError = 1011,
32-
BNCRedeemZeroCreditsError = 1012, //Deprecated
3331
BNCSpotlightIdentifierError = 1013,
3432
BNCSpotlightPublicIndexError = 1014,
3533
BNCTrackingDisabledError = 1015,

BranchSDK/NSError+Branch.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ + (NSString *) messageForCode:(BNCErrorCode)code {
2828
messages = [NSMutableDictionary<NSNumber *, NSString *> new];
2929
[messages setObject:@"The Branch user session has not been initialized." forKey:@(BNCInitError)];
3030
[messages setObject:@"A resource with this identifier already exists." forKey:@(BNCDuplicateResourceError)];
31-
[messages setObject:@"You're trying to redeem more credits than are available. Have you loaded rewards?" forKey:@(BNCRedeemCreditsError)]; //Deprecated
3231
[messages setObject:@"The network request was invalid." forKey:@(BNCBadRequestError)];
3332
[messages setObject:@"Trouble reaching the Branch servers, please try again shortly." forKey:@(BNCServerProblemError)];
3433
[messages setObject:@"Can't log error messages because the logger is set to nil." forKey:@(BNCNilLogError)];
@@ -38,7 +37,6 @@ + (NSString *) messageForCode:(BNCErrorCode)code {
3837
[messages setObject:@"A canonical identifier or title are required to uniquely identify content." forKey:@(BNCContentIdentifierError)];
3938
[messages setObject:@"The Core Spotlight indexing service is not available on this device." forKey:@(BNCSpotlightNotAvailableError)];
4039
[messages setObject:@"Spotlight indexing requires a title." forKey:@(BNCSpotlightTitleError)];
41-
[messages setObject:@"Can't redeem zero credits." forKey:@(BNCRedeemZeroCreditsError)]; // Deprecated
4240
[messages setObject:@"The Spotlight identifier is required to remove indexing from spotlight." forKey:@(BNCSpotlightIdentifierError)];
4341
[messages setObject:@"Spotlight cannot remove publicly indexed content." forKey:@(BNCSpotlightPublicIndexError)];
4442
[messages setObject:@"User tracking is disabled and the request is not allowed" forKey:@(BNCTrackingDisabledError)];

0 commit comments

Comments
 (0)