summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-27 06:23:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-27 06:23:56 +0000
commit9614d22b5d6dcb4e0ee6fe12bad0c1021230cacf (patch)
treecc2f21a212601266a7f174bf92daf49b547e151d /array.c
parente52469a43d6ef58c5c5432ce1b1476e943b70b41 (diff)
* array.c (rb_ary_sample): removed unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index 8a828c506c..026079b445 100644
--- a/array.c
+++ b/array.c
@@ -3823,7 +3823,7 @@ static VALUE
rb_ary_sample(int argc, VALUE *argv, VALUE ary)
{
VALUE nv, result, *ptr;
- VALUE opts, snap, randgen = rb_cRandom;
+ VALUE opts, randgen = rb_cRandom;
long n, len, i, j, k, idx[10];
double rnds[numberof(idx)];