diff options
author | Victor Shyba <victor1984@riseup.net> | 2016-11-20 18:11:16 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2016-12-12 09:15:21 -0200 |
commit | 8ebed9c686f79b6d099266d3c5440f5dc9fb383e (patch) | |
tree | 3425715822f96047b387b66a55db0e6f80ef2126 /client/src/leap/soledad/client/sqlcipher.py | |
parent | b17eecaa35240333d0270c1a3437e67510fe4f20 (diff) |
[refactor] Remove dead code
Batching is now decided on server side, so the code can be simplified.
Also, sync_db and other parameters were used to initialize encdecpool,
which is no longer supported.
Diffstat (limited to 'client/src/leap/soledad/client/sqlcipher.py')
-rw-r--r-- | client/src/leap/soledad/client/sqlcipher.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/client/src/leap/soledad/client/sqlcipher.py b/client/src/leap/soledad/client/sqlcipher.py index b9db3674..e7057a8d 100644 --- a/client/src/leap/soledad/client/sqlcipher.py +++ b/client/src/leap/soledad/client/sqlcipher.py @@ -396,8 +396,7 @@ class SQLCipherU1DBSync(SQLCipherDatabase): """ ENCRYPT_LOOP_PERIOD = 1 - def __init__(self, opts, soledad_crypto, replica_uid, cert_file, - sync_db=None): + def __init__(self, opts, soledad_crypto, replica_uid, cert_file): self._opts = opts self._path = opts.path @@ -405,8 +404,6 @@ class SQLCipherU1DBSync(SQLCipherDatabase): self.__replica_uid = replica_uid self._cert_file = cert_file - self._sync_db = sync_db - # storage for the documents received during a sync self.received_docs = [] @@ -494,8 +491,7 @@ class SQLCipherU1DBSync(SQLCipherDatabase): self._replica_uid, creds=creds, crypto=self._crypto, - cert_file=self._cert_file, - sync_db=self._sync_db)) + cert_file=self._cert_file)) # # Symmetric encryption of syncing docs |