[Groonga-commit] groonga/groonga at ddc5f34 [fix-never-read] Remove unused variable 'm'

Back to archive index

HAYASHI Kentaro null+****@clear*****
Sat Dec 13 21:36:18 JST 2014


HAYASHI Kentaro	2014-12-13 21:36:18 +0900 (Sat, 13 Dec 2014)

  New Revision: ddc5f3499cf115f24baf503076a0db8117777d24
  https://github.com/groonga/groonga/commit/ddc5f3499cf115f24baf503076a0db8117777d24

  Message:
    Remove unused variable 'm'

  Modified files:
    lib/hash.c

  Modified: lib/hash.c (+1 -2)
===================================================================
--- lib/hash.c    2014-12-13 21:29:40 +0900 (22491c5)
+++ lib/hash.c    2014-12-13 21:36:18 +0900 (d253fe3)
@@ -2484,7 +2484,7 @@ grn_rc
 grn_hash_delete(grn_ctx *ctx, grn_hash *hash, const void *key, uint32_t key_size,
                 grn_table_delete_optarg *optarg)
 {
-  uint32_t h, i, m, s;
+  uint32_t h, i, s;
   grn_rc rc = GRN_INVALID_ARGUMENT;
   if (hash->obj.header.flags & GRN_OBJ_KEY_VAR_SIZE) {
     if (key_size > hash->key_size) { return GRN_INVALID_ARGUMENT; }
@@ -2501,7 +2501,6 @@ grn_hash_delete(grn_ctx *ctx, grn_hash *hash, const void *key, uint32_t key_size
   {
     grn_id e, *ep;
     /* lock */
-    m = *hash->max_offset;
     for (i = h; ; i += s) {
       if (!(ep = grn_hash_idx_at(ctx, hash, i))) { return GRN_NO_MEMORY_AVAILABLE; }
       if (!(e = *ep)) { break; }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index