Remove unused locked() function
We do not use ui.locked() anymore to output an error message, the text comes directly from the exception. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
		@@ -199,7 +199,8 @@ class SyncableAccount(Account):
 | 
				
			|||||||
            pass
 | 
					            pass
 | 
				
			||||||
        except IOError:
 | 
					        except IOError:
 | 
				
			||||||
            self._lockfd.close()
 | 
					            self._lockfd.close()
 | 
				
			||||||
            raise OfflineImapError("Could not lock account %s." % self,
 | 
					            raise OfflineImapError("Could not lock account %s. Is another "
 | 
				
			||||||
 | 
					                                   "instance using this account?" % self,
 | 
				
			||||||
                                   OfflineImapError.ERROR.REPO)
 | 
					                                   OfflineImapError.ERROR.REPO)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def unlock(self):
 | 
					    def unlock(self):
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -203,9 +203,6 @@ class UIBase(object):
 | 
				
			|||||||
    def invaliddebug(self, debugtype):
 | 
					    def invaliddebug(self, debugtype):
 | 
				
			||||||
        self.warn("Invalid debug type: %s" % debugtype)
 | 
					        self.warn("Invalid debug type: %s" % debugtype)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def locked(s):
 | 
					 | 
				
			||||||
        raise Exception, "Another OfflineIMAP is running with the same metadatadir; exiting."
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    def getnicename(self, object):
 | 
					    def getnicename(self, object):
 | 
				
			||||||
        """Return the type of a repository or Folder as string
 | 
					        """Return the type of a repository or Folder as string
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user