diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-04-24 09:43:12 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-04-24 11:43:05 +0900 |
| commit | 0c5f26e0ffc30bdc88b857daed1c9fe18c4b8f0c (patch) | |
| tree | 4b7a75f66c8fcc2a99ea90129b5d5be6310f1c89 /src/etc.c | |
| parent | 9ca9af60f27d6009c1d4665f7e87c70defea9bdd (diff) | |
| download | mruby-0c5f26e0ffc30bdc88b857daed1c9fe18c4b8f0c.tar.gz mruby-0c5f26e0ffc30bdc88b857daed1c9fe18c4b8f0c.zip | |
Remove unnecessary `mrb_regexp_check()` and related functions.
Diffstat (limited to 'src/etc.c')
| -rw-r--r-- | src/etc.c | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -194,22 +194,6 @@ mrb_word_boxing_cptr_value(mrb_state *mrb, void *p) } #endif /* MRB_WORD_BOXING */ -MRB_API mrb_bool -mrb_regexp_p(mrb_state *mrb, mrb_value v) -{ - if (mrb->flags & MRB_STATE_NO_REGEXP) { - return FALSE; - } - if ((mrb->flags & MRB_STATE_REGEXP) || mrb_class_defined(mrb, REGEXP_CLASS)) { - mrb->flags |= MRB_STATE_REGEXP; - return mrb_obj_is_kind_of(mrb, v, mrb_class_get(mrb, REGEXP_CLASS)); - } - else { - mrb->flags |= MRB_STATE_NO_REGEXP; - } - return FALSE; -} - #if defined _MSC_VER && _MSC_VER < 1900 #ifndef va_copy |
