[Groonga-commit] groonga/groonga [master] httpd: remove unused code

Back to archive index

null+****@clear***** null+****@clear*****
2012年 7月 23日 (月) 21:57:23 JST


Kouhei Sutou	2012-07-23 21:57:23 +0900 (Mon, 23 Jul 2012)

  New Revision: 0f75af28ea7ad82f3b34d69ef580765d3960dc6b
  https://github.com/groonga/groonga/commit/0f75af28ea7ad82f3b34d69ef580765d3960dc6b

  Log:
    httpd: remove unused code

  Modified files:
    src/nginx-module/ngx_http_groonga_module.c

  Modified: src/nginx-module/ngx_http_groonga_module.c (+0 -9)
===================================================================
--- src/nginx-module/ngx_http_groonga_module.c    2012-07-23 19:18:29 +0900 (362c7da)
+++ src/nginx-module/ngx_http_groonga_module.c    2012-07-23 21:57:23 +0900 (6aa8db0)
@@ -217,9 +217,6 @@ ngx_http_groonga_handler(ngx_http_request_t *r)
   ngx_chain_t  head_chain, body_chain, foot_chain;
 
   grn_ctx *context;
-  char *result = NULL;
-  unsigned int result_size = 0;
-  unsigned char *body_data;
 
   ngx_http_groonga_output_t output;
   const char *content_type;
@@ -237,12 +234,6 @@ ngx_http_groonga_handler(ngx_http_request_t *r)
                r->unparsed_uri.len,
                GRN_NO_FLAGS);
 
-  body_data = ngx_pcalloc(r->pool, result_size);
-  if (body_data == NULL) {
-    return NGX_HTTP_INTERNAL_SERVER_ERROR;
-  }
-  ngx_memcpy(body_data, result, result_size);
-
   /* we response to 'GET' and 'HEAD' requests only */
   if (!(r->method & (NGX_HTTP_GET|NGX_HTTP_HEAD))) {
     return NGX_HTTP_NOT_ALLOWED;
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
下载 



Groonga-commit メーリングリストの案内
Back to archive index