[Groonga-commit] groonga/groonga at fa8e95b [master] Remove needless code

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Aug 9 22:44:13 JST 2014


Kouhei Sutou	2014-08-09 22:44:13 +0900 (Sat, 09 Aug 2014)

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

  Message:
    Remove needless code

  Modified files:
    lib/db.c

  Modified: lib/db.c (+0 -2)
===================================================================
--- lib/db.c    2014-08-09 22:24:14 +0900 (e8d708c)
+++ lib/db.c    2014-08-09 22:44:13 +0900 (28ec256)
@@ -216,7 +216,6 @@ grn_obj *
 grn_db_open(grn_ctx *ctx, const char *path)
 {
   grn_db *s;
-  grn_ctx *ctx_ = ctx;
   GRN_API_ENTER;
   if (path && strlen(path) <= PATH_MAX - 14) {
     if ((s = GRN_MALLOC(sizeof(grn_db)))) {
@@ -246,7 +245,6 @@ grn_db_open(grn_ctx *ctx, const char *path)
           s->obj.header.domain = GRN_ID_NIL;
           DB_OBJ(&s->obj)->range = GRN_ID_NIL;
           grn_ctx_use(ctx, (grn_obj *)s);
-          grn_ctx_use(ctx_, (grn_obj *)s);
 #ifdef GRN_WITH_MECAB
           if (grn_db_init_mecab_tokenizer(ctx)) {
             ERRCLR(ctx);
-------------- next part --------------
HTML����������������������������...
Télécharger 



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