IOSAD-157 Remove global bool in PEPSync IOSAD-157
authorDirk Zimmermann <dz@pep.security>
Wed, 20 Nov 2019 16:39:59 +0100
branchIOSAD-157
changeset 1352fa2d3c5b20af
parent 1351 292758143715
child 1353 4f22ccb02830
IOSAD-157 Remove global bool in PEPSync
pEpObjCAdapter/PEPSync.m
     1.1 --- a/pEpObjCAdapter/PEPSync.m	Wed Nov 20 16:39:59 2019 +0100
     1.2 +++ b/pEpObjCAdapter/PEPSync.m	Wed Nov 20 16:39:59 2019 +0100
     1.3 @@ -25,8 +25,6 @@
     1.4  
     1.5  // MARK: - Internals
     1.6  
     1.7 -BOOL g_isKeySyncEnabled = NO;
     1.8 -
     1.9  static os_log_t s_logger;
    1.10  
    1.11  typedef PEP_STATUS (* t_messageToSendCallback)(struct _message *msg);
    1.12 @@ -160,8 +158,6 @@
    1.13  
    1.14  - (void)startup
    1.15  {
    1.16 -    g_isKeySyncEnabled = YES;
    1.17 -
    1.18      // Make sure queue is empty when we start.
    1.19      [self.queue removeAllObjects];
    1.20  
    1.21 @@ -226,8 +222,6 @@
    1.22          os_log_error(s_logger, "could not create session for starting the sync loop");
    1.23      }
    1.24  
    1.25 -    g_isKeySyncEnabled = NO;
    1.26 -
    1.27      os_log(s_logger, "sync loop finished");
    1.28  
    1.29      session = nil;