summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-01-08 13:05:27 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-01-08 13:05:27 +0900
commit3046cc7bd8bdf470dbe8eec2de4c7a1caedcd352 (patch)
treeccf95a1fce4afea8d9d97684e79cca5a864672ae /src/string.c
parentc150f115a162c6f44d0866dba2cea91572a0ea98 (diff)
parent2040347d26a979898e6d1454c0780df0eead705e (diff)
downloadmruby-3046cc7bd8bdf470dbe8eec2de4c7a1caedcd352.tar.gz
mruby-3046cc7bd8bdf470dbe8eec2de4c7a1caedcd352.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/string.c b/src/string.c
index e8c37180d..7d0cdaf0d 100644
--- a/src/string.c
+++ b/src/string.c
@@ -107,16 +107,6 @@ mrb_str_resize(mrb_state *mrb, mrb_value str, mrb_int len)
return str;
}
-static inline void
-str_mod_check(mrb_state *mrb, mrb_value str, char *p, mrb_int len)
-{
- struct RString *s = mrb_str_ptr(str);
-
- if (s->ptr != p || s->len != len) {
- mrb_raise(mrb, E_RUNTIME_ERROR, "string modified");
- }
-}
-
#define mrb_obj_alloc_string(mrb) ((struct RString*)mrb_obj_alloc((mrb), MRB_TT_STRING, (mrb)->string_class))
/* char offset to byte offset */