aboutsummaryrefslogtreecommitdiffhomepage
path: root/database.cc
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-10-25 16:12:24 -0700
committerGravatar Carl Worth <cworth@cworth.org>2009-10-25 16:14:07 -0700
commit70f9d0ad428312397ee7ad157b520824d66d0d0e (patch)
treedc71e3bb91e72630004e9637a3d68a4a49f3737c /database.cc
parent179629b672092cb98b8d15bca7d5a622500a488a (diff)
Drop dead function add_term.
Even with the recent warnings work, gcc didn't tell me about a static function that I'm not calling? Apparently I get "defined but not used" in C files, but not C++ files. That's bogus, and yet one more reason for me to push the C++ to a minimal lower layer.
Diffstat (limited to 'database.cc')
-rw-r--r--database.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/database.cc b/database.cc
index b1b95e9d..3cbab9f0 100644
--- a/database.cc
+++ b/database.cc
@@ -172,29 +172,6 @@ notmuch_status_to_string (notmuch_status_t status)
}
}
-/* XXX: We should drop this function and convert all callers to call
- * _notmuch_message_add_term instead. */
-static void
-add_term (Xapian::Document doc,
- const char *prefix_name,
- const char *value)
-{
- const char *prefix;
- char *term;
-
- if (value == NULL)
- return;
-
- prefix = _find_prefix (prefix_name);
-
- term = g_strdup_printf ("%s%s", prefix, value);
-
- if (strlen (term) <= NOTMUCH_TERM_MAX)
- doc.add_term (term);
-
- g_free (term);
-}
-
static void
find_doc_ids (notmuch_database_t *notmuch,
const char *prefix_name,