[Groonga-commit] groonga/groonga at 9cd03f4 [master] Remove unused flags

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Feb 6 19:58:47 JST 2016


Kouhei Sutou	2016-02-06 19:58:47 +0900 (Sat, 06 Feb 2016)

  New Revision: 9cd03f428deff85b91ad150e5b240a3a11b34a7a
  https://github.com/groonga/groonga/commit/9cd03f428deff85b91ad150e5b240a3a11b34a7a

  Message:
    Remove unused flags

  Modified files:
    lib/expr.c

  Modified: lib/expr.c (+1 -10)
===================================================================
--- lib/expr.c    2016-02-06 19:53:54 +0900 (6ed5c51)
+++ lib/expr.c    2016-02-06 19:58:47 +0900 (04c51e1)
@@ -5622,24 +5622,15 @@ grn_table_select_index_range_column(grn_ctx *ctx, grn_obj *table,
       uint32_t sid;
       int32_t weight;
       grn_ii *ii = (grn_ii *)index;
-      int ii_cursor_flags;
 
       sid = GRN_UINT32_VALUE_AT(&(si->wv), 0);
       weight = GRN_INT32_VALUE_AT(&(si->wv), 1);
-      ii_cursor_flags = GRN_OBJ_WITH_WEIGHT;
-      if (sid != 0) {
-        ii_cursor_flags |= GRN_OBJ_WITH_SECTION;
-      }
-      if (si->position.specified) {
-        ii_cursor_flags |= GRN_OBJ_WITH_POSITION;
-      }
       while ((tid = grn_table_cursor_next(ctx, cursor)) != GRN_ID_NIL) {
         grn_ii_cursor *ii_cursor;
 
         ii_cursor = grn_ii_cursor_open(ctx, ii, tid,
                                        GRN_ID_NIL, GRN_ID_MAX,
-                                       ii->n_elements,
-                                       ii_cursor_flags);
+                                       ii->n_elements, 0);
         if (ii_cursor) {
           grn_posting *posting;
           while ((posting = grn_ii_cursor_next(ctx, ii_cursor))) {
-------------- next part --------------
HTML����������������������������...
Download 



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