[Groonga-commit] groonga/groonga [master] Remove unused code

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Dec 20 19:18:20 JST 2012


Kouhei Sutou	2012-12-20 19:18:20 +0900 (Thu, 20 Dec 2012)

  New Revision: 564be94ff1da2dd9a1eec12da3c18e6fda352438
  https://github.com/groonga/groonga/commit/564be94ff1da2dd9a1eec12da3c18e6fda352438

  Log:
    Remove unused code

  Modified files:
    lib/output.c

  Modified: lib/output.c (+0 -29)
===================================================================
--- lib/output.c    2012-12-20 19:17:45 +0900 (f7db134)
+++ lib/output.c    2012-12-20 19:18:20 +0900 (2ba300b)
@@ -630,33 +630,6 @@ grn_text_atoj_o(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type,
   grn_text_atoj(ctx, outbuf, output_type, obj, *idp);
 }
 
-#ifdef USE_GRN_TEXT_OTOJ
-
-void
-grn_output_obj(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type, grn_obj *obj, grn_obj_format *format)
-{
-  put_delimiter(ctx, outbuf, output_type);
-  switch (output_type) {
-  case GRN_CONTENT_JSON:
-    grn_text_otoj(ctx, outbuf, obj, format);
-    break;
-  case GRN_CONTENT_TSV:
-    grn_text_otoj(ctx, outbuf, obj, format);
-    break;
-  case GRN_CONTENT_XML:
-    grn_text_otoxml(ctx, outbuf, obj, format);
-    break;
-  case GRN_CONTENT_MSGPACK :
-    // todo
-    break;
-  case GRN_CONTENT_NONE:
-    break;
-  }
-  INCR_LENGTH;
-}
-
-#else /* USE_GRN_TEXT_OTOJ */
-
 static inline void
 grn_output_bulk(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type,
                 grn_obj *bulk, grn_obj_format *format)
@@ -1354,8 +1327,6 @@ grn_output_obj(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type,
   GRN_OBJ_FIN(ctx, &buf);
 }
 
-#endif /* USE_GRN_TEXT_OTOJ */
-
 typedef enum {
   XML_START,
   XML_START_ELEMENT,
-------------- next part --------------
HTML����������������������������...
Télécharger 



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