aboutsummaryrefslogtreecommitdiffstats
path: root/src/tokenizers
diff options
context:
space:
mode:
Diffstat (limited to 'src/tokenizers')
-rw-r--r--src/tokenizers/tokenizers.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/tokenizers/tokenizers.c b/src/tokenizers/tokenizers.c
index 902245e7d..2eb11eff8 100644
--- a/src/tokenizers/tokenizers.c
+++ b/src/tokenizers/tokenizers.c
@@ -256,7 +256,6 @@ tokenize_subject (struct worker_task *task, GTree ** tree)
{
f_str_t subject;
const gchar *sub;
- token_node_t *new = NULL;
struct tokenizer *osb_tokenizer;
if (*tree == NULL) {
@@ -268,13 +267,11 @@ tokenize_subject (struct worker_task *task, GTree ** tree)
/* Try to use pre-defined subject */
if (task->subject != NULL) {
- new = memory_pool_alloc (task->task_pool, sizeof (token_node_t));
subject.begin = task->subject;
subject.len = strlen (task->subject);
osb_tokenizer->tokenize_func (osb_tokenizer, task->task_pool, &subject, tree, FALSE, TRUE, NULL);
}
if ((sub = g_mime_message_get_subject (task->message)) != NULL) {
- new = memory_pool_alloc (task->task_pool, sizeof (token_node_t));
subject.begin = (gchar *)sub;
subject.len = strlen (sub);
osb_tokenizer->tokenize_func (osb_tokenizer, task->task_pool, &subject, tree, FALSE, TRUE, NULL);