[Groonga-commit] groonga/groonga at 2408c39 [master] Remove needless code

Back to archive index

Kouhei Sutou null+****@clear*****
Thu May 26 09:23:46 JST 2016


Kouhei Sutou	2016-05-26 09:23:46 +0900 (Thu, 26 May 2016)

  New Revision: 2408c397ca9e6c10601f2c355b8278578cc4477a
  https://github.com/groonga/groonga/commit/2408c397ca9e6c10601f2c355b8278578cc4477a

  Message:
    Remove needless code

  Modified files:
    lib/db.c

  Modified: lib/db.c (+1 -5)
===================================================================
--- lib/db.c    2016-05-25 16:51:11 +0900 (b09cc83)
+++ lib/db.c    2016-05-26 09:23:46 +0900 (94c76dd)
@@ -3194,19 +3194,15 @@ grn_accessor_resolve_one_table(grn_ctx *ctx, grn_accessor *accessor,
 {
   grn_rc rc = GRN_SUCCESS;
   grn_obj *table;
-  grn_id next_res_domain_id = GRN_ID_NIL;
 
   table = accessor->obj;
   {
     grn_rc rc;
-    grn_obj *next_res_domain = grn_ctx_at(ctx, next_res_domain_id);
     *next_res = grn_table_create(ctx, NULL, 0, NULL,
                                  GRN_TABLE_HASH_KEY|GRN_OBJ_WITH_SUBREC,
                                  table, NULL);
-    rc = ctx->rc;
-    grn_obj_unlink(ctx, next_res_domain);
     if (!*next_res) {
-      return rc;
+      return ctx->rc;
     }
   }
 
-------------- next part --------------
HTML����������������������������...
Download 



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