mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
unused function uscore_get removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8733060106
commit
5b8e80e9eb
1 changed files with 0 additions and 13 deletions
13
string.c
13
string.c
|
@ -2155,19 +2155,6 @@ rb_str_clear(VALUE str)
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
|
||||||
uscore_get(void)
|
|
||||||
{
|
|
||||||
VALUE line;
|
|
||||||
|
|
||||||
line = rb_lastline_get();
|
|
||||||
if (TYPE(line) != T_STRING) {
|
|
||||||
rb_raise(rb_eTypeError, "$_ value need to be String (%s given)",
|
|
||||||
NIL_P(line) ? "nil" : rb_obj_classname(line));
|
|
||||||
}
|
|
||||||
return line;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* str.reverse! => str
|
* str.reverse! => str
|
||||||
|
|
Loading…
Add table
Reference in a new issue