[Groonga-commit] groonga/groonga [master] Remove unused literal objects

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jan 10 12:33:25 JST 2013


Kouhei Sutou	2013-01-10 12:33:25 +0900 (Thu, 10 Jan 2013)

  New Revision: 410233a0ccc6b074e830a11ed743ffc1d60af092
  https://github.com/groonga/groonga/commit/410233a0ccc6b074e830a11ed743ffc1d60af092

  Log:
    Remove unused literal objects

  Modified files:
    lib/ctx.c
    lib/ctx.h

  Modified: lib/ctx.c (+0 -9)
===================================================================
--- lib/ctx.c    2013-01-10 12:32:08 +0900 (4007762)
+++ lib/ctx.c    2013-01-10 12:33:25 +0900 (9807647)
@@ -1129,9 +1129,6 @@ grn_log_reopen(grn_ctx *ctx)
 }
 
 
-static grn_obj grn_true_, grn_false_, grn_null_;
-grn_obj *grn_true, *grn_false, *grn_null;
-
 static void
 check_overcommit_memory(grn_ctx *ctx)
 {
@@ -1172,12 +1169,6 @@ grn_init(void)
   ctx->prev = ctx;
   grn_ctx_init(ctx, 0);
   ctx->encoding = grn_strtoenc(GRN_DEFAULT_ENCODING);
-  grn_true = &grn_true_;
-  grn_false = &grn_false_;
-  grn_null = &grn_null_;
-  GRN_VOID_INIT(grn_true);
-  GRN_VOID_INIT(grn_false);
-  GRN_VOID_INIT(grn_null);
   grn_timeval_now(ctx, &grn_starttime);
 #ifdef WIN32
   {

  Modified: lib/ctx.h (+0 -1)
===================================================================
--- lib/ctx.h    2013-01-10 12:32:08 +0900 (345055c)
+++ lib/ctx.h    2013-01-10 12:33:25 +0900 (28c1c19)
@@ -378,7 +378,6 @@ GRN_VAR grn_ctx grn_gctx;
 extern int grn_pagesize;
 extern grn_critical_section grn_glock;
 extern uint32_t grn_gtick;
-extern grn_obj *grn_true, *grn_false, *grn_null;
 GRN_VAR const char *grn_qlog_path;
 
 #define GRN_CTX_ALLOCATED                            (0x80)
-------------- next part --------------
HTML����������������������������...
Download 



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