From fcd4194cb77e1a30929212da1f3a9376c16f9ba3 Mon Sep 17 00:00:00 2001 From: nsingh-branch Date: Wed, 14 Feb 2024 14:46:34 -0800 Subject: [PATCH] Removed one method --- Branch-TestBed/Branch-TestBed/AppDelegate.m | 1 - BranchSDK/Branch.h | 1 - BranchSDK/Branch.m | 6 +----- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Branch-TestBed/Branch-TestBed/AppDelegate.m b/Branch-TestBed/Branch-TestBed/AppDelegate.m index 34c246de2..aedcf2ea9 100644 --- a/Branch-TestBed/Branch-TestBed/AppDelegate.m +++ b/Branch-TestBed/Branch-TestBed/AppDelegate.m @@ -34,7 +34,6 @@ - (BOOL)application:(UIApplication *)application // test pre init support //[self testDispatchToIsolationQueue:branch] - [branch enableLoggingAtLevel:BranchLogLevelVerbose withCallback:^(NSString * _Nonnull message, BranchLogLevel logLevel, NSError * _Nullable error) { // Handle the log message and error here. For example, printing to the console: if (error) { diff --git a/BranchSDK/Branch.h b/BranchSDK/Branch.h index dd6beea97..55c425725 100644 --- a/BranchSDK/Branch.h +++ b/BranchSDK/Branch.h @@ -567,7 +567,6 @@ extern NSString * __nonnull const BNCSpotlightFeature; Enable debug messages to os_log. */ - (void)enableLogging; -- (void)enableLoggingAtLevel:(BranchLogLevel)logLevel; - (void)enableLoggingAtLevel:(BranchLogLevel)logLevel withCallback:(nullable BranchLogCallback)callback; /** diff --git a/BranchSDK/Branch.m b/BranchSDK/Branch.m index 4d7918f1d..0f4a7649a 100644 --- a/BranchSDK/Branch.m +++ b/BranchSDK/Branch.m @@ -418,13 +418,9 @@ + (BOOL)branchKeyIsSet { } - (void)enableLogging { - [self enableLoggingAtLevel:BranchLogLevelDebug]; -} - -- (void)enableLoggingAtLevel:(BranchLogLevel)logLevel { BranchLogger *logger = [BranchLogger shared]; logger.loggingEnabled = YES; - logger.logLevelThreshold = logLevel; + logger.logLevelThreshold = BranchLogLevelDebug; } - (void)enableLoggingAtLevel:(BranchLogLevel)logLevel withCallback:(nullable BranchLogCallback)callback {