summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-25 14:52:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-25 14:52:37 +0000
commit12852c2e9ad0b25395d32c4ee147eb770408cf41 (patch)
treeadfa0f16338897148efd66dbfda189e44b9696b2 /re.c
parent44b2f1609ca6a4732066c70f06499e46ab5b6bf9 (diff)
* dir.c (glob_helper): must not closedir() when exception raised
while globbing "**". * marshal.c (w_uclass): unused variable. * re.c (match_clone): unused. * regex.c (re_compile_pattern): get rid of implicit promotion from plain char to int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/re.c b/re.c
index 366387b..0e4cd56 100644
--- a/re.c
+++ b/re.c
@@ -527,23 +527,6 @@ match_alloc(klass)
}
static VALUE
-match_clone(match)
- VALUE match;
-{
- NEWOBJ(clone, struct RMatch);
- CLONESETUP(clone, match);
-
- clone->str = RMATCH(match)->str;
- clone->regs = 0;
-
- clone->regs = ALLOC(struct re_registers);
- clone->regs->allocated = 0;
- re_copy_registers(clone->regs, RMATCH(match)->regs);
-
- return (VALUE)clone;
-}
-
-static VALUE
match_become(obj, orig)
VALUE obj, orig;
{