]> git.notmuchmail.org Git - notmuch/commitdiff
database: Remove two little bits of dead code.
authorCarl Worth <cworth@cworth.org>
Wed, 21 Oct 2009 06:12:53 +0000 (23:12 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 21 Oct 2009 06:12:53 +0000 (23:12 -0700)
database.cc

index 041cffdc9afe49b01a2c54e86a87b88610d25b0d..5ee07059cda75569fe7e7bbfd6ffca6b23a4c823 100644 (file)
@@ -457,7 +457,6 @@ notmuch_database_open (const char *path)
     notmuch->path = xstrdup (path);
 
     try {
-       Xapian::PostingIterator i;
        notmuch->xapian_db = new Xapian::WritableDatabase (xapian_path,
                                                           Xapian::DB_CREATE_OR_OPEN);
     } catch (const Xapian::Error &error) {
@@ -519,8 +518,6 @@ notmuch_database_add_message (notmuch_database_t *notmuch,
                                           (char *) NULL);
 
     try {
-       doc = Xapian::Document ();
-
        doc.set_data (filename);
 
        parents = g_ptr_array_new ();