[PATCH] folder/Base: remove waitforthread() method

Nicolas Sebrecht nicolas.s-dev at laposte.net
Wed May 11 20:43:42 BST 2011


waitforthread() is currently used in folder/IMAP.py only and redefined in it. It
doesn't make sense to have a dump definition in the Base class.

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev at laposte.net>
---

It's probably the first cleanup for a longer cleanup suites consisting in
checking all these base objects against inherithed.
I think that bases don't have to define everything.


 offlineimap/folder/Base.py |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/offlineimap/folder/Base.py b/offlineimap/folder/Base.py
index a5fd242..608d361 100644
--- a/offlineimap/folder/Base.py
+++ b/offlineimap/folder/Base.py
@@ -37,11 +37,6 @@ class BaseFolder(object):
         false otherwise.  Probably only IMAP will return true."""
         return 0
 
-    def waitforthread(self):
-        """For threading folders, waits until there is a resource available
-        before firing off a thread.  For all others, returns immediately."""
-        pass
-
     def getcopyinstancelimit(self):
         """For threading folders, returns the instancelimitname for
         InstanceLimitedThreads."""
-- 
1.7.5.1.354.g761178





More information about the OfflineIMAP-project mailing list