From a194b84a1abab65dc8b1e77884731775ccd61193 Mon Sep 17 00:00:00 2001 From: Andrey Kornich Date: Mon, 18 Apr 2022 23:38:19 -0700 Subject: [PATCH] chore: code cleanup --- RollbarNotifier/Sources/RollbarNotifier/RollbarLogger.m | 4 ---- .../Sources/RollbarNotifier/RollbarTelemetryThread.m | 2 -- 2 files changed, 6 deletions(-) diff --git a/RollbarNotifier/Sources/RollbarNotifier/RollbarLogger.m b/RollbarNotifier/Sources/RollbarNotifier/RollbarLogger.m index c3a613b1..9afe48b5 100644 --- a/RollbarNotifier/Sources/RollbarNotifier/RollbarLogger.m +++ b/RollbarNotifier/Sources/RollbarNotifier/RollbarLogger.m @@ -114,10 +114,6 @@ + (void)initialize { RollbarConfig *config = [RollbarConfig new]; - // Setup the worker thread that atomatically collects pre-configured telemetry events (if any): - //[[RollbarTelemetryThread sharedInstance] configureWithOptions:config.telemetry]; - //[[RollbarTelemetryThread sharedInstance] start]; - // Setup the worker thread that sends the items that have been queued up in the item file set above: // TODO: !!! this needs to be redesigned taking in account multiple access tokens and endpoints !!! RollbarLogger *logger = [[RollbarLogger alloc] initWithConfiguration:config]; diff --git a/RollbarNotifier/Sources/RollbarNotifier/RollbarTelemetryThread.m b/RollbarNotifier/Sources/RollbarNotifier/RollbarTelemetryThread.m index 27fe7260..26878a71 100644 --- a/RollbarNotifier/Sources/RollbarNotifier/RollbarTelemetryThread.m +++ b/RollbarNotifier/Sources/RollbarNotifier/RollbarTelemetryThread.m @@ -25,7 +25,6 @@ + (nonnull instancetype)sharedInstance { dispatch_once(&onceToken, ^{ - //singleton = [[[self class] alloc] initWithTarget:singleton selector:@selector(run) object:nil]; singleton = [[self class] alloc]; if ((singleton = [singleton initWithTarget:singleton //self selector:@selector(run) @@ -94,7 +93,6 @@ - (BOOL)setupTimer { if (self->_timer && self->_timer.timeInterval == self->_collectionTimeInterval) { // nothing fundamental needs reconfiguration... - //return (nil != self->_timer); return !(0.0 == self->_timer.timeInterval); }