diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-03-12 17:26:04 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-03-12 17:26:04 -0700 |
| commit | 3f4c2d451d8670aa27ff0599061fb98aedcdb90c (patch) | |
| tree | 24288b00c453511d392f2f783256fe5424181b57 | |
| parent | e53628eb9d6ee5e5979dca9e686236ab58e3fd23 (diff) | |
| parent | 3af128c742c6d68f4b88bbc950f3219a071ca87c (diff) | |
| download | mruby-3f4c2d451d8670aa27ff0599061fb98aedcdb90c.tar.gz mruby-3f4c2d451d8670aa27ff0599061fb98aedcdb90c.zip | |
Merge pull request #985 from monaka/pr-remove-unused-code-20130312
Remove mrb_str_sublen() as it is not used.
| -rw-r--r-- | include/mruby/string.h | 1 | ||||
| -rw-r--r-- | src/string.c | 9 |
2 files changed, 0 insertions, 10 deletions
diff --git a/include/mruby/string.h b/include/mruby/string.h index 850cb56db..2fc748474 100644 --- a/include/mruby/string.h +++ b/include/mruby/string.h @@ -53,7 +53,6 @@ mrb_value mrb_str_buf_cat(mrb_state *mrb, mrb_value str, const char *ptr, int le char *mrb_string_value_cstr(mrb_state *mrb, mrb_value *ptr); char *mrb_string_value_ptr(mrb_state *mrb, mrb_value ptr); -int mrb_str_sublen(mrb_state *mrb, mrb_value str, int pos); int mrb_str_offset(mrb_state *mrb, mrb_value str, int pos); mrb_value mrb_str_dup(mrb_state *mrb, mrb_value str); /* mrb_str_dup */ mrb_value mrb_str_intern(mrb_state *mrb, mrb_value self); diff --git a/src/string.c b/src/string.c index bb4b8c1a6..7a2602928 100644 --- a/src/string.c +++ b/src/string.c @@ -1678,15 +1678,6 @@ mrb_str_rindex(mrb_state *mrb, mrb_value str, mrb_value sub, mrb_int pos) } } -#ifdef INCLUDE_ENCODING -/* byte offset to char offset */ -int -mrb_str_sublen(mrb_state *mrb, mrb_value str, long pos) -{ - return pos; -} -#endif //INCLUDE_ENCODING - /* 15.2.10.5.31 */ /* * call-seq: |
