]> git.notmuchmail.org Git - notmuch/blobdiff - lib/message.cc
Remove some variables which were set but not used.
[notmuch] / lib / message.cc
index ecda75af208b416124fd9cc6bc165c56e5ed0521..a5a65e21701b49530ac755ab4be6e6e9d3acae72 100644 (file)
@@ -213,7 +213,6 @@ _notmuch_message_create_for_message_id (notmuch_database_t *notmuch,
 {
     notmuch_message_t *message;
     Xapian::Document doc;
-    Xapian::WritableDatabase *db;
     unsigned int doc_id;
     char *term;
 
@@ -233,7 +232,6 @@ _notmuch_message_create_for_message_id (notmuch_database_t *notmuch,
     if (notmuch->mode == NOTMUCH_DATABASE_MODE_READ_ONLY)
        INTERNAL_ERROR ("Failure to ensure database is writable.");
 
-    db = static_cast<Xapian::WritableDatabase *> (notmuch->xapian_db);
     try {
        doc.add_term (term, 0);
        talloc_free (term);