summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorskandhas <[email protected]>2013-01-11 15:38:55 +0800
committerskandhas <[email protected]>2013-01-11 15:38:55 +0800
commit15c96cf8b5b44f635a3f93944fe347f2df912682 (patch)
tree2b047c2502dab159b165c064791187856c505c87
parent0ff251438cf0fac727da8e8d99071cbdf46e7cfe (diff)
downloadmruby-15c96cf8b5b44f635a3f93944fe347f2df912682.tar.gz
mruby-15c96cf8b5b44f635a3f93944fe347f2df912682.zip
remove mrb_str_each_line form src/string.c
-rw-r--r--src/string.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/string.c b/src/string.c
index dee383fab..144c4bd2a 100644
--- a/src/string.c
+++ b/src/string.c
@@ -1114,44 +1114,6 @@ mrb_str_downcase(mrb_state *mrb, mrb_value self)
return str;
}
-/* 15.2.10.5.15 */
-/*
- * call-seq:
- * str.each(separator=$/) {|substr| block } => str
- * str.each_line(separator=$/) {|substr| block } => str
- *
- * Splits <i>str</i> using the supplied parameter as the record separator
- * (<code>$/</code> by default), passing each substring in turn to the supplied
- * block. If a zero-length record separator is supplied, the string is split
- * into paragraphs delimited by multiple successive newlines.
- *
- * print "Example one\n"
- * "hello\nworld".each {|s| p s}
- * print "Example two\n"
- * "hello\nworld".each('l') {|s| p s}
- * print "Example three\n"
- * "hello\n\n\nworld".each('') {|s| p s}
- *
- * <em>produces:</em>
- *
- * Example one
- * "hello\n"
- * "world"
- * Example two
- * "hel"
- * "l"
- * "o\nworl"
- * "d"
- * Example three
- * "hello\n\n\n"
- * "world"
- */
-static mrb_value
-mrb_str_each_line(mrb_state *mrb, mrb_value str)
-{
- return mrb_nil_value();
-}
-
/* 15.2.10.5.16 */
/*
* call-seq:
@@ -3033,7 +2995,6 @@ mrb_init_string(mrb_state *mrb)
mrb_define_method(mrb, s, "chop!", mrb_str_chop_bang, ARGS_REQ(1)); /* 15.2.10.5.12 */
mrb_define_method(mrb, s, "downcase", mrb_str_downcase, ARGS_NONE()); /* 15.2.10.5.13 */
mrb_define_method(mrb, s, "downcase!", mrb_str_downcase_bang, ARGS_NONE()); /* 15.2.10.5.14 */
- mrb_define_method(mrb, s, "each_line", mrb_str_each_line, ARGS_REQ(1)); /* 15.2.10.5.15 */
mrb_define_method(mrb, s, "empty?", mrb_str_empty_p, ARGS_NONE()); /* 15.2.10.5.16 */
mrb_define_method(mrb, s, "eql?", mrb_str_eql, ARGS_REQ(1)); /* 15.2.10.5.17 */
#ifdef ENABLE_REGEXP