[Groonga-commit] ranguba/rroonga at 974deb0 [master] Remove needless code

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Dec 12 19:08:22 JST 2014


Kouhei Sutou	2014-12-12 19:08:22 +0900 (Fri, 12 Dec 2014)

  New Revision: 974deb03b637411336cff29483f1f884094dba3f
  https://github.com/ranguba/rroonga/commit/974deb03b637411336cff29483f1f884094dba3f

  Message:
    Remove needless code

  Modified files:
    ext/groonga/extconf.rb
    ext/groonga/rb-grn-expression.c

  Modified: ext/groonga/extconf.rb (+0 -3)
===================================================================
--- ext/groonga/extconf.rb    2014-12-12 19:07:35 +0900 (713bf81)
+++ ext/groonga/extconf.rb    2014-12-12 19:08:22 +0900 (323eef8)
@@ -283,9 +283,6 @@ have_func("rb_sym2str", "ruby.h")
 have_func("rb_to_symbol", "ruby.h")
 have_type("enum ruby_value_type", "ruby.h")
 
-# TODO: Remove me after Groogna 4.0.8 is released.
-have_func("grn_expr_dump_plan", "groonga.h")
-
 checking_for(checking_message("--enable-debug-log option")) do
   enable_debug_log = enable_config("debug-log", false)
   if enable_debug_log

  Modified: ext/groonga/rb-grn-expression.c (+0 -5)
===================================================================
--- ext/groonga/rb-grn-expression.c    2014-12-12 19:07:35 +0900 (5ddd6ac)
+++ ext/groonga/rb-grn-expression.c    2014-12-12 19:08:22 +0900 (195ecdc)
@@ -503,8 +503,6 @@ rb_grn_expression_compile (VALUE self)
 static VALUE
 rb_grn_expression_dump_plan (VALUE self)
 {
-/* TODO: Remove me after Groogna 4.0.8 is released. */
-#ifdef HAVE_GRN_EXPR_DUMP_PLAN
     grn_ctx *context = NULL;
     grn_obj *expression;
     grn_obj dumped_plan;
@@ -520,9 +518,6 @@ rb_grn_expression_dump_plan (VALUE self)
     grn_obj_unlink(context, &dumped_plan);
 
     return rb_dumped_plan;
-#else
-    return rb_str_new2("");
-#endif
 }
 
 /*
-------------- next part --------------
HTML����������������������������...
Descargar 



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