summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-11-22 19:11:35 +0200
committerLars Wirzenius <liw@liw.fi>2014-11-22 19:11:35 +0200
commit94c6c0e24d8debd6d562af2fa0d8ffcf4dfd69b6 (patch)
treefbe9caf4ed2036a2c315368d0f36a06f3457d0ae
parentf4788df9c39664dfcf38c599f6d9acab6b401c92 (diff)
downloadjt-94c6c0e24d8debd6d562af2fa0d8ffcf4dfd69b6.tar.gz
Remove now-unused find_drafts method
-rwxr-xr-xjt7
1 files changed, 0 insertions, 7 deletions
diff --git a/jt b/jt
index 67220e5..16108c9 100755
--- a/jt
+++ b/jt
@@ -306,13 +306,6 @@ class JournalTool(cliapp.Application):
'''List journal entry drafts.'''
ListCommand(self).run(args)
- def find_drafts(self):
- drafts_dir = self.drafts_dir()
- for name in os.listdir(drafts_dir):
- # .# is what Emacs autosave files start with.
- if name.endswith('.mdwn') and not name.startswith('.#'):
- yield name[:-len('.mdwn')], os.path.join(drafts_dir, name)
-
def get_draft_title(self, filename):
with open(filename) as f:
for line in f: