From c2a3b5faedd0d5981e8025c2d274293cb2571490 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Fri, 1 Feb 2019 19:14:56 +0200 Subject: [PATCH] Removed unused varibles defined in shared: alreadyAttemptedConnections*, needToWriteKnownNodesToDisk --- src/shared.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/shared.py b/src/shared.py index 9a1c08d1..e2239a3a 100644 --- a/src/shared.py +++ b/src/shared.py @@ -4,7 +4,6 @@ import os import sys import stat -import time import threading import hashlib import subprocess @@ -48,14 +47,7 @@ printLock = threading.Lock() statusIconColor = 'red' thisapp = None # singleton lock instance -alreadyAttemptedConnectionsList = { -} # This is a list of nodes to which we have already attempted a connection -alreadyAttemptedConnectionsListLock = threading.Lock() -# used to clear out the alreadyAttemptedConnectionsList periodically -# so that we will retry connecting to hosts to which we have already -# tried to connect. -alreadyAttemptedConnectionsListResetTime = int(time.time()) -# A list of the amounts of time it took to successfully decrypt msg messages + successfullyDecryptMessageTimings = [] ackdataForWhichImWatching = {} # used by API command clientStatus @@ -64,9 +56,6 @@ numberOfMessagesProcessed = 0 numberOfBroadcastsProcessed = 0 numberOfPubkeysProcessed = 0 -# If True, the singleCleaner will write it to disk eventually. -needToWriteKnownNodesToDisk = False - maximumLengthOfTimeToBotherResendingMessages = 0 timeOffsetWrongCount = 0