summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-06-12 01:41:20 +0900
committerYukihiro Matsumoto <[email protected]>2012-06-12 01:41:20 +0900
commit21304086cdd6297feb8dc754357a7b9d35fff742 (patch)
tree6d067e7f32ed7beb5cd10d8e50108546d9de7f4f
parent6247eafc7167d5f18a5dae4d7508be06c370c1f9 (diff)
downloadmruby-21304086cdd6297feb8dc754357a7b9d35fff742.tar.gz
mruby-21304086cdd6297feb8dc754357a7b9d35fff742.zip
remove khash#kh_debug
-rw-r--r--include/mruby/khash.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/include/mruby/khash.h b/include/mruby/khash.h
index f8958781a..22df48ebb 100644
--- a/include/mruby/khash.h
+++ b/include/mruby/khash.h
@@ -163,15 +163,7 @@ static const uint8_t __m[8] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80};
{ \
h->d_flags[x/8] |= __m[x%8]; \
h->size--; \
- } \
- static inline void kh_debug_##name(kh_##name##_t *h) \
- { \
- khint_t i; \
- printf("idx:e_flag:d_flag\n"); \
- for( i=0 ; i<h->n_buckets/8 ; i++ ){ \
- printf("%4d:%02X:%02X\n", i, h->e_flags[i], h->d_flags[i]); \
- } \
- } \
+ }
#define khash_t(name) kh_##name##_t
@@ -182,7 +174,6 @@ static const uint8_t __m[8] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80};
#define kh_put(name, h, k) kh_put_##name(h, k)
#define kh_get(name, h, k) kh_get_##name(h, k)
#define kh_del(name, h, k) kh_del_##name(h, k)
-#define kh_debug(name, h) kh_debug_##name(h)
#define kh_exist(h, x) (!__ac_iseither((h)->e_flags, (h)->d_flags, (x)))
#define kh_key(h, x) ((h)->keys[x])