[tracker] libtracker-fts tests: Remove unused variable
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-fts tests: Remove unused variable
- Date: Wed, 7 Jul 2010 08:25:15 +0000 (UTC)
commit 69f9b1b4659a0bc0a91cb0b898b277b755b43043
Author: Aleksander Morgado <aleksander lanedo com>
Date: Wed Jul 7 10:25:00 2010 +0200
libtracker-fts tests: Remove unused variable
tests/libtracker-fts/tracker-parser-test.c | 26 ++++++++++++--------------
1 files changed, 12 insertions(+), 14 deletions(-)
---
diff --git a/tests/libtracker-fts/tracker-parser-test.c b/tests/libtracker-fts/tracker-parser-test.c
index 5390989..b9b8ceb 100644
--- a/tests/libtracker-fts/tracker-parser-test.c
+++ b/tests/libtracker-fts/tracker-parser-test.c
@@ -119,7 +119,6 @@ expected_nwords_check (TrackerParserTestFixture *fixture,
gconstpointer data)
{
const TestDataExpectedNWords *testdata = data;
- const gchar *word;
gint position;
gint byte_offset_start;
gint byte_offset_end;
@@ -139,12 +138,12 @@ expected_nwords_check (TrackerParserTestFixture *fixture,
testdata->ignore_numbers);
/* Count number of output words */
- while ((word = tracker_parser_next (fixture->parser,
- &position,
- &byte_offset_start,
- &byte_offset_end,
- &stop_word,
- &word_length))) {
+ while (tracker_parser_next (fixture->parser,
+ &position,
+ &byte_offset_start,
+ &byte_offset_end,
+ &stop_word,
+ &word_length)) {
nwords++;
}
@@ -223,7 +222,6 @@ stop_word_check (TrackerParserTestFixture *fixture,
gconstpointer data)
{
const TestDataStopWord *testdata = data;
- const gchar *word;
gint position;
gint byte_offset_start;
gint byte_offset_end;
@@ -242,12 +240,12 @@ stop_word_check (TrackerParserTestFixture *fixture,
fixture->ignore_numbers);
/* Process next word */
- word = tracker_parser_next (fixture->parser,
- &position,
- &byte_offset_start,
- &byte_offset_end,
- &stop_word,
- &word_length);
+ tracker_parser_next (fixture->parser,
+ &position,
+ &byte_offset_start,
+ &byte_offset_end,
+ &stop_word,
+ &word_length);
/* Check if input is same as stop_word */
g_assert_cmpuint (stop_word, == , testdata->is_expected_stop_word);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]