[PATCH] Remove unused variable mailboxes

Sebastian Spaeth Sebastian at SSpaeth.de
Mon Jan 31 16:31:57 GMT 2011


"mailboxes" is defined global and set to an empty list, but never used
from anywhere within offlineimap. So let us just delete it.

Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
cleanup patch against "next" branch

 offlineimap/accounts.py |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/offlineimap/accounts.py b/offlineimap/accounts.py
index cd09646..b60822c 100644
--- a/offlineimap/accounts.py
+++ b/offlineimap/accounts.py
@@ -102,7 +102,6 @@ def AccountHashGenerator(customconfig):
         retval[item.getname()] = item
     return retval
 
-mailboxes = []
 
 class Account(CustomConfig.ConfigHelperMixin):
     def __init__(self, config, name):
@@ -291,7 +290,6 @@ class SyncableAccount(Account, AccountSynchronizationMixin):
 
 def syncfolder(accountname, remoterepos, remotefolder, localrepos,
                statusrepos, quick):
-    global mailboxes
     ui = getglobalui()
     ui.registerthread(accountname)
     try:
-- 
1.7.1





More information about the OfflineIMAP-project mailing list