[Groonga-commit] ranguba/rroonga at 0aa438a [master] Remove needless check

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 14 15:20:10 JST 2015


Kouhei Sutou	2015-04-14 15:20:10 +0900 (Tue, 14 Apr 2015)

  New Revision: 0aa438a4bbfd78d84aa57f60e3221b2619ae6063
  https://github.com/ranguba/rroonga/commit/0aa438a4bbfd78d84aa57f60e3221b2619ae6063

  Message:
    Remove needless check
    
    Because Groonga 5.0.1 has been released.

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

  Modified: ext/groonga/extconf.rb (+0 -3)
===================================================================
--- ext/groonga/extconf.rb    2015-04-14 15:16:16 +0900 (ecc840f)
+++ ext/groonga/extconf.rb    2015-04-14 15:20:10 +0900 (95fd45b)
@@ -286,9 +286,6 @@ have_func("rb_ary_new_from_args", "ruby.h")
 have_func("rb_ary_new_from_values", "ruby.h")
 have_type("enum ruby_value_type", "ruby.h")
 
-# TODO: Remove me when Groonga 5.0.1 is released.
-have_func("grn_expr_estimate_size", "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    2015-04-14 15:16:16 +0900 (bab6a76)
+++ ext/groonga/rb-grn-expression.c    2015-04-14 15:20:10 +0900 (ae20d55)
@@ -791,8 +791,6 @@ rb_grn_expression_get_keywords (VALUE self)
     return rb_keywords;
 }
 
-/* TODO: Remove the ifdef when Groonga 5.0.1 is released. */
-#ifdef HAVE_GRN_EXPR_ESTIMATE_SIZE
 /*
  * Estimates the number of matched records when `expression` is
  * executed.
@@ -825,7 +823,6 @@ rb_grn_expression_estimate_size (VALUE self)
 
     return UINT2NUM(size);
 }
-#endif
 
 void
 rb_grn_init_expression (VALUE mGrn)
@@ -866,8 +863,6 @@ rb_grn_init_expression (VALUE mGrn)
     rb_define_method(rb_cGrnExpression, "keywords",
                      rb_grn_expression_get_keywords, 0);
 
-#ifdef HAVE_GRN_EXPR_ESTIMATE_SIZE
     rb_define_method(rb_cGrnExpression, "estimate_size",
                      rb_grn_expression_estimate_size, 0);
-#endif
 }
-------------- next part --------------
HTML����������������������������...
Descargar 



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