[Groonga-commit] groonga/groonga at e5065b1 [master] mrb: remove needless unlink

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Mar 16 12:08:16 JST 2017


Kouhei Sutou	2017-03-16 12:08:16 +0900 (Thu, 16 Mar 2017)

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

  Message:
    mrb: remove needless unlink

  Modified files:
    lib/mrb/mrb_table_sort_key.c

  Modified: lib/mrb/mrb_table_sort_key.c (+0 -4)
===================================================================
--- lib/mrb/mrb_table_sort_key.c    2017-03-16 11:22:54 +0900 (3313cce)
+++ lib/mrb/mrb_table_sort_key.c    2017-03-16 12:08:16 +0900 (46aea98)
@@ -32,16 +32,12 @@
 static void
 mrb_grn_table_sort_key_free(mrb_state *mrb, void *data)
 {
-  grn_ctx *ctx = (grn_ctx *)mrb->ud;
   grn_table_sort_key *sort_key = data;
 
   if (!sort_key) {
     return;
   }
 
-  if (sort_key->key) {
-    grn_obj_unlink(ctx, sort_key->key);
-  }
   mrb_free(mrb, sort_key);
 }
 
-------------- next part --------------
HTML����������������������������...
Download 



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