[Groonga-commit] groonga/groonga at aeb327d [master] plugin stop_word: remove a needless condition

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Mar 8 17:08:48 JST 2015


Kouhei Sutou	2015-03-08 17:08:48 +0900 (Sun, 08 Mar 2015)

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

  Message:
    plugin stop_word: remove a needless condition

  Modified files:
    plugins/token_filters/stop_word.c

  Modified: plugins/token_filters/stop_word.c (+2 -5)
===================================================================
--- plugins/token_filters/stop_word.c    2015-03-08 17:05:58 +0900 (0393fb9)
+++ plugins/token_filters/stop_word.c    2015-03-08 17:08:48 +0900 (f9c6839)
@@ -87,15 +87,13 @@ stop_word_filter(grn_ctx *ctx,
                  void *user_data)
 {
   grn_stop_word_token_filter *token_filter = user_data;
+  grn_id id;
+  grn_obj *data;
 
   if (!token_filter) {
     return;
   }
 
-  if (token_filter->mode == GRN_TOKEN_GET) {
-    grn_id id;
-    grn_obj *data;
-
     data = grn_token_get_data(ctx, current_token);
     id = grn_table_get(ctx,
                        token_filter->table,
@@ -114,7 +112,6 @@ stop_word_filter(grn_ctx *ctx,
         grn_token_set_status(ctx, next_token, status);
       }
     }
-  }
 }
 
 static void
-------------- next part --------------
HTML����������������������������...
下载 



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