summaryrefslogtreecommitdiff
path: root/ext/strscan
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-17 04:57:11 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-17 04:57:11 +0000
commitd121a3fb790192ca816d417c32829a36b7a04ae1 (patch)
treed324b98a8b135d16fcae53b26f5c7e8e3ad6bd17 /ext/strscan
parent945ea61cd7a6ee0701e7b337bae5a090afca92e1 (diff)
* ext/strscan/strscan.c (Init_strscan): remove obsolete
matchedsize method, use matched_size instead. [ruby-dev:38591] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/strscan')
-rw-r--r--ext/strscan/strscan.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c
index 6b0d8e7..e843e54 100644
--- a/ext/strscan/strscan.c
+++ b/ext/strscan/strscan.c
@@ -931,17 +931,6 @@ strscan_matched_size(VALUE self)
}
/*
- * Equivalent to #matched_size.
- * This method is obsolete; use #matched_size instead.
- */
-static VALUE
-strscan_matchedsize(VALUE self)
-{
- rb_warning("StringScanner#matchedsize is obsolete; use #matched_size instead");
- return strscan_matched_size(self);
-}
-
-/*
* call-seq: [](n)
*
* Return the n-th subgroup in the most recent match.
@@ -1317,7 +1306,6 @@ Init_strscan()
rb_define_method(StringScanner, "matched?", strscan_matched_p, 0);
rb_define_method(StringScanner, "matched", strscan_matched, 0);
rb_define_method(StringScanner, "matched_size", strscan_matched_size, 0);
- rb_define_method(StringScanner, "matchedsize", strscan_matchedsize, 0);
rb_define_method(StringScanner, "[]", strscan_aref, 1);
rb_define_method(StringScanner, "pre_match", strscan_pre_match, 0);
rb_define_method(StringScanner, "post_match", strscan_post_match, 0);