Browse Source

IOS-1475 Remove (sync) NSLog.

IOSAD-103
Dirk Zimmermann 4 years ago
parent
commit
2c3efa778a
3 changed files with 1 additions and 14 deletions
  1. +0
    -2
      pEpObjCAdapter/PEPQueue.m
  2. +0
    -5
      pEpObjCAdapter/PEPSessionProvider.m
  3. +1
    -7
      pEpObjCAdapter/PEPSync.m

+ 0
- 2
pEpObjCAdapter/PEPQueue.m View File

@ -36,7 +36,6 @@
[_cond lock];
if (_queue) {
NSLog(@"*** enqueue %@", object);
[_queue insertObject:object atIndex:0];
}
@ -82,7 +81,6 @@
[_cond unlock];
NSLog(@"*** dequeue %@", tmp);
return tmp;
}


+ 0
- 5
pEpObjCAdapter/PEPSessionProvider.m View File

@ -134,14 +134,9 @@ static PEPInternalSession *s_sessionForMainThread = nil;
if ([NSThread isMainThread]) {
NSLog(@"*** assuring main session on main thread");
creationBlock();
NSLog(@"*** assuring main session on main thread - DONE");
} else {
NSLog(@"*** assuring main session on background thread %@",
[[NSThread currentThread] name]);
dispatch_sync(dispatch_get_main_queue(), creationBlock);
NSLog(@"*** assuring main session on background thread - DONE");
}
}


+ 1
- 7
pEpObjCAdapter/PEPSync.m View File

@ -177,7 +177,6 @@ static __weak PEPSync *s_pEpSync;
- (void)shutdown
{
NSLog(@"*** shutdown");
if (self.syncThread) {
[self injectSyncEvent:nil];
[self.conditionLockForJoiningSyncThread lockWhenCondition:YES];
@ -205,8 +204,7 @@ static __weak PEPSync *s_pEpSync;
do_sync_protocol(session.session, nil);
unregister_sync_callbacks(session.session);
} else {
// indicate error, maybe through `object`?
NSLog(@"*** ERROR: Could not create internal session");
// TODO: indicate error, maybe through `object`?
}
session = nil;
@ -226,9 +224,6 @@ static __weak PEPSync *s_pEpSync;
- (int)injectSyncEvent:(SYNC_EVENT)event
{
if (event == NULL) {
NSLog(@"*** enqueueing NULL");
}
[self.queue enqueue:[NSValue valueWithBytes:&event objCType:@encode(SYNC_EVENT)]];
return 0;
}
@ -257,7 +252,6 @@ static __weak PEPSync *s_pEpSync;
[value getValue:&event];
return event;
} else {
NSLog(@"*** timeout event");
return new_sync_timeout_event();
}
}


Loading…
Cancel
Save