summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-17 02:39:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-17 02:39:43 +0000
commit166f8d6d0b5aac3c67f573184dfd9b646580dbd7 (patch)
tree5e1a9ef974aee39fbbc6725ce5030b88f589cf3a
parent34c96140f3e767e0a3bd9e82db55e46593d4f3b8 (diff)
* parse.y (ripper_warnS): now unused.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--parse.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 8ecb0ae..f8b96fb 100644
--- a/parse.y
+++ b/parse.y
@@ -556,7 +556,9 @@ static VALUE ripper_id2sym(ID);
# define rb_warningS(fmt,a) ripper_warningS(parser, fmt, a)
static void ripper_warn0(struct parser_params*, const char*);
static void ripper_warnI(struct parser_params*, const char*, int);
+#if 0
static void ripper_warnS(struct parser_params*, const char*, const char*);
+#endif
static void ripper_warning0(struct parser_params*, const char*);
static void ripper_warningS(struct parser_params*, const char*, const char*);
#endif
@@ -9763,12 +9765,14 @@ ripper_warnI(struct parser_params *parser, const char *fmt, int a)
STR_NEW2(fmt), INT2NUM(a));
}
+#if 0
static void
ripper_warnS(struct parser_params *parser, const char *fmt, const char *str)
{
rb_funcall(parser->value, rb_intern("warn"), 2,
- STR_NEW2(fmt), STR_NEW2(str));
+ STR_NEW2(fmt), STR_NEW2(str));
}
+#endif
static void
ripper_warning0(struct parser_params *parser, const char *fmt)