summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-06-03 00:23:59 +0900
committerYukihiro Matsumoto <[email protected]>2012-06-03 00:23:59 +0900
commitcc86250297c4a8d4a2e3e350fab8cf96929283c3 (patch)
treed7ce997ba5f0845ae009d99cafcf98a27368f625 /include
parentecbaf9cd99803a2fa121fe6aabea74590a36e0b2 (diff)
downloadmruby-cc86250297c4a8d4a2e3e350fab8cf96929283c3.tar.gz
mruby-cc86250297c4a8d4a2e3e350fab8cf96929283c3.zip
remove unsafe macros in hash.h
Diffstat (limited to 'include')
-rw-r--r--include/mruby/hash.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/mruby/hash.h b/include/mruby/hash.h
index 01b042d46..369decdb4 100644
--- a/include/mruby/hash.h
+++ b/include/mruby/hash.h
@@ -33,8 +33,6 @@ mrb_value mrb_check_hash_type(mrb_state *mrb, mrb_value self);
/* RHASH_TBL allocates st_table if not available. */
#define RHASH(obj) ((struct RHash*)((obj).value.p))
#define RHASH_TBL(h) (RHASH(h)->ht)
-#define RHASH_SIZE(h) (RHASH_TBL(h)->size)
-#define RHASH_EMPTY_P(h) (RHASH_SIZE(h) == 0)
#define RHASH_IFNONE(h) mrb_iv_get(mrb, (h), mrb_intern(mrb, "ifnone"))
#define RHASH_PROCDEFAULT(h) RHASH_IFNONE(h)
struct kh_ht * mrb_hash_tbl(mrb_state *mrb, mrb_value hash);