[Groonga-commit] groonga/groonga [master] [test] remove unused variables.

Back to archive index

null+****@clear***** null+****@clear*****
2012年 1月 12日 (木) 16:13:04 JST


Kouhei Sutou	2012-01-12 16:13:04 +0900 (Thu, 12 Jan 2012)

  New Revision: 2fbb91f5aec521fd5355370247bc5ece91e1ca45

  Log:
    [test] remove unused variables.

  Modified files:
    test/unit/core/dat/test-dat-pat.cpp
    test/unit/core/dat/test-dat.cpp

  Modified: test/unit/core/dat/test-dat-pat.cpp (+1 -2)
===================================================================
--- test/unit/core/dat/test-dat-pat.cpp    2012-01-12 16:11:12 +0900 (66331b3)
+++ test/unit/core/dat/test-dat-pat.cpp    2012-01-12 16:13:04 +0900 (51d2f38)
@@ -1,6 +1,6 @@
 /* -*- c-basic-offset: 2; coding: utf-8 -*- */
 /*
-  Copyright (C) 2011  Brazil
+  Copyright (C) 2011-2012  Brazil
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -316,7 +316,6 @@ namespace test_dat_pat
     for (std::size_t i = 0; i < keys.size(); i += 2) {
       const char * const ptr = keys[i].c_str();
       const uint32_t length = static_cast<uint32_t>(keys[i].length());
-      const grn_id key_id = static_cast<grn_id>(i + 1);
       cppcut_assert_equal(GRN_SUCCESS,
                           grn_pat_delete(&ctx, pat, ptr, length, NULL));
       cppcut_assert_equal(GRN_SUCCESS,

  Modified: test/unit/core/dat/test-dat.cpp (+1 -2)
===================================================================
--- test/unit/core/dat/test-dat.cpp    2012-01-12 16:11:12 +0900 (b13d540)
+++ test/unit/core/dat/test-dat.cpp    2012-01-12 16:13:04 +0900 (556ef11)
@@ -1,6 +1,6 @@
 /* -*- c-basic-offset: 2; coding: utf-8 -*- */
 /*
-  Copyright (C) 2011  Brazil
+  Copyright (C) 2011-2012  Brazil
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -631,7 +631,6 @@ namespace test_dat
     grn_dat * const dat = create_trie(keys, NULL);
     for (std::size_t i = 0; i < keys.size(); ++i) {
       const grn_id key_id = static_cast<grn_id>(i + 1);
-      const char * const ptr = keys[i].c_str();
       const uint32_t length = static_cast<uint32_t>(keys[i].length());
       uint32_t key_length;
       const char * const key_ptr = _grn_dat_key(&ctx, dat, key_id, &key_length);




Groonga-commit メーリングリストの案内
Back to archive index