[Groonga-commit] groonga/groonga at 5e0fec2 [master] grn_ts: use common utility functions

Back to archive index

susumu.yata null+****@clear*****
Mon Nov 16 19:20:36 JST 2015


susumu.yata	2015-11-16 19:20:36 +0900 (Mon, 16 Nov 2015)

  New Revision: 5e0fec2d7f4896bdce6ad5a497110bf49b2c7a1a
  https://github.com/groonga/groonga/commit/5e0fec2d7f4896bdce6ad5a497110bf49b2c7a1a

  Message:
    grn_ts: use common utility functions

  Modified files:
    lib/ts.c

  Modified: lib/ts.c (+1 -23)
===================================================================
--- lib/ts.c    2015-11-16 18:52:32 +0900 (cb7ab1c)
+++ lib/ts.c    2015-11-16 19:20:36 +0900 (fefeb28)
@@ -28,6 +28,7 @@
 #include "ts/ts_log.h"
 #include "ts/ts_str.h"
 #include "ts/ts_types.h"
+#include "ts/ts_util.h"
 
 /*-------------------------------------------------------------
  * Miscellaneous.
@@ -159,29 +160,6 @@ grn_ts_geo_vector_output(grn_ctx *ctx, grn_ts_geo_vector value)
 }
 #undef GRN_TS_VECTOR_OUTPUT
 
-/* grn_ts_table_has_key() returns whether or not a table has _key. */
-static grn_ts_bool
-grn_ts_table_has_key(grn_ctx *ctx, grn_obj *table)
-{
-  switch (table->header.type) {
-    case GRN_TABLE_HASH_KEY:
-    case GRN_TABLE_PAT_KEY:
-    case GRN_TABLE_DAT_KEY: {
-      return GRN_TRUE;
-    }
-    default: {
-      return GRN_FALSE;
-    }
-  }
-}
-
-/* grn_ts_obj_is_table() returns whether or not an object is a table. */
-static grn_ts_bool
-grn_ts_obj_is_table(grn_ctx *ctx, grn_obj *obj)
-{
-  return grn_obj_is_table(ctx, obj);
-}
-
 /*-------------------------------------------------------------
  * grn_ts_writer.
  */
-------------- next part --------------
HTML����������������������������...
다운로드 



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