Remove rb_hash_ar_table
It's dead code and duplicate of RHASH_AR_TABLE.
This commit is contained in:
parent
e11067ebbf
commit
2866f951c5
Notes:
git
2023-01-31 20:48:31 +00:00
7
hash.c
7
hash.c
@ -579,13 +579,6 @@ rb_hash_ar_table_p(VALUE hash)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ar_table *
|
|
||||||
rb_hash_ar_table(VALUE hash)
|
|
||||||
{
|
|
||||||
HASH_ASSERT(RHASH_AR_TABLE_P(hash));
|
|
||||||
return RHASH(hash)->as.ar;
|
|
||||||
}
|
|
||||||
|
|
||||||
st_table *
|
st_table *
|
||||||
rb_hash_st_table(VALUE hash)
|
rb_hash_st_table(VALUE hash)
|
||||||
{
|
{
|
||||||
|
@ -120,30 +120,6 @@ MJIT_SYMBOL_EXPORT_END
|
|||||||
|
|
||||||
VALUE rb_hash_compare_by_id(VALUE hash);
|
VALUE rb_hash_compare_by_id(VALUE hash);
|
||||||
|
|
||||||
#if 0 /* for debug */
|
|
||||||
|
|
||||||
static inline bool
|
|
||||||
RHASH_AR_TABLE_P(VALUE h)
|
|
||||||
{
|
|
||||||
extern int rb_hash_ar_table_p(VALUE hash);
|
|
||||||
return rb_hash_ar_table_p(h)
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline struct ar_table_struct *
|
|
||||||
RHASH_AR_TABLE(VALUE h)
|
|
||||||
{
|
|
||||||
extern struct ar_table_struct *rb_hash_ar_table(VALUE hash);
|
|
||||||
return rb_hash_ar_table(h)
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline st_table *
|
|
||||||
RHASH_ST_TABLE(VALUE h)
|
|
||||||
{
|
|
||||||
return rb_hash_st_table(h)
|
|
||||||
}
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
static inline bool
|
static inline bool
|
||||||
RHASH_AR_TABLE_P(VALUE h)
|
RHASH_AR_TABLE_P(VALUE h)
|
||||||
{
|
{
|
||||||
@ -162,8 +138,6 @@ RHASH_ST_TABLE(VALUE h)
|
|||||||
return RHASH(h)->as.st;
|
return RHASH(h)->as.st;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static inline VALUE
|
static inline VALUE
|
||||||
RHASH_IFNONE(VALUE h)
|
RHASH_IFNONE(VALUE h)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user