summaryrefslogtreecommitdiff
path: root/alot/db/manager.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-02-06 14:08:44 +0100
committerAnton Khirnov <anton@khirnov.net>2020-02-06 14:08:44 +0100
commitaf713c2fad332f74c8b37d07e3c58bda979b2a4d (patch)
tree617338dc69355ef3486a398a07ff9f13c998707d /alot/db/manager.py
parent7a89adb3118b2be637c60c1bf91bbca691329801 (diff)
db/manager: drop unused functions
Diffstat (limited to 'alot/db/manager.py')
-rw-r--r--alot/db/manager.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/alot/db/manager.py b/alot/db/manager.py
index 8f457712..4d1bb5b2 100644
--- a/alot/db/manager.py
+++ b/alot/db/manager.py
@@ -17,7 +17,6 @@ from .errors import DatabaseError
from .errors import DatabaseLockedError
from .errors import DatabaseROError
from .errors import NonexistantObjectError
-from .message import Message
from .thread import Thread
from .utils import is_subdir_of
from ..settings.const import settings
@@ -275,20 +274,6 @@ class DBManager:
"""returns :class:`Thread` with given thread id (str)"""
return Thread(self, self._get_notmuch_thread(tid))
- def _get_notmuch_message(self, mid):
- """returns :class:`notmuch.database.Message` with given id"""
- mode = Database.MODE.READ_ONLY
- db = Database(path=self.path, mode=mode)
- try:
- return db.find_message(mid)
- except:
- errmsg = 'no message with id %s exists!' % mid
- raise NonexistantObjectError(errmsg)
-
- def get_message(self, mid):
- """returns :class:`Message` with given message id (str)"""
- return Message(self, self._get_notmuch_message(mid))
-
def get_all_tags(self):
"""
returns all tagsstrings used in the database