Skip to content

Commit

Permalink
Refac: Comment unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
nonelse committed Aug 8, 2023
1 parent b0212c7 commit 1ed76a4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 25 deletions.
1 change: 0 additions & 1 deletion Adjust/common/sdk_package/ADJSdkPackageBuilder.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#import "ADJTallyCounter.h"
#import "ADJUtilSys.h"
#import "ADJResult.h"
#import "ADJFlag.h"

#pragma mark Private class
@implementation ADJSdkPackageCreatingPublisher @end
Expand Down
13 changes: 0 additions & 13 deletions Adjust/common/types/domain/ADJFlag.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,6 @@

+ (nullable ADJFlag *)instanceFromBool:(BOOL)boolValue;

+ (nonnull ADJResult<ADJFlag *> *)instanceFromBoolWrapper:
(nullable ADJBooleanWrapper *)boolWrapperValue;

+ (nonnull ADJResult<ADJFlag *> *)instanceFromNumberBoolean:
(nullable NSNumber *)numberBooleanValue;

+ (nonnull ADJResult<ADJFlag *> *)instanceFromIoValue:
(nullable ADJNonEmptyString *)ioValue;

+ (nonnull ADJResult<ADJFlag *> *)instanceFromString:(nullable NSString *)stringValue;

+ (nonnull ADJResult<ADJFlag *> *)instanceFromObject:(nullable id)objectValue;

- (nullable instancetype)init NS_UNAVAILABLE;

@end
25 changes: 14 additions & 11 deletions Adjust/common/types/domain/ADJFlag.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ + (nullable ADJFlag *)instanceFromBool:(BOOL)boolValue {

return [ADJFlag singleInstance];
}

/*
+ (nonnull ADJResult<ADJFlag *> *)instanceFromBoolWrapper:
(nullable ADJBooleanWrapper *)boolWrapperValue
{
Expand Down Expand Up @@ -104,7 +104,7 @@ + (nullable ADJFlag *)instanceFromBool:(BOOL)boolValue {
return [ADJResult okWithValue:
[ADJFlag instanceFromNumberBoolean:(NSNumber *)objectValue]];
}

*/

- (nullable instancetype)init {
[self doesNotRecognizeSelector:_cmd];
Expand All @@ -127,15 +127,6 @@ + (nonnull ADJFlag *)singleInstance {
return singleInstance;
}

+ (nonnull ADJResult<ADJFlag *> *)okResultSingleInstance {
static dispatch_once_t onceOkResultSingleInstanceToken;
static ADJResult<ADJFlag *> * okResultSingleInstance;
dispatch_once(&onceOkResultSingleInstanceToken, ^{
okResultSingleInstance = [ADJResult okWithValue:[ADJFlag singleInstance]];
});
return okResultSingleInstance;
}

+ (nonnull ADJNonEmptyString *)trueString {
static dispatch_once_t onceTrueStringToken;
static ADJNonEmptyString * trueString;
Expand All @@ -146,10 +137,22 @@ + (nonnull ADJNonEmptyString *)trueString {
return trueString;
}

/*
+ (nonnull ADJResult<ADJFlag *> *)okResultSingleInstance {
static dispatch_once_t onceOkResultSingleInstanceToken;
static ADJResult<ADJFlag *> * okResultSingleInstance;
dispatch_once(&onceOkResultSingleInstanceToken, ^{
okResultSingleInstance = [ADJResult okWithValue:[ADJFlag singleInstance]];
});
return okResultSingleInstance;
}
#pragma mark Public API
- (nonnull NSString *)jsonString {
return ADJBooleanTrueJsonString;
}
*/

#pragma mark - ADJIoValueSerializable
- (nonnull ADJNonEmptyString *)toIoValue {
Expand Down

0 comments on commit 1ed76a4

Please sign in to comment.