From 63f39fcb4045f98888b24494b77317d70a8398e0 Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 25 Apr 2011 07:56:42 +0000 Subject: * random.c (random_rand): remove unused variables. * struct.c (rb_struct_define_without_accessor): ditto. * strftime.c (rb_strftime_with_timespec): ditto. * sprintf.c: ditto. * time.c (time_asctime): remove useless GetTimeval(). * thread_pthread.c: cast to (void *) for %p. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- random.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'random.c') diff --git a/random.c b/random.c index e711d283f1..ab9e42918f 100644 --- a/random.c +++ b/random.c @@ -1136,8 +1136,7 @@ static VALUE random_rand(int argc, VALUE *argv, VALUE obj) { rb_random_t *rnd = get_rnd(obj); - VALUE vmax, beg = Qundef, end = Qundef, v; - int excl = 0; + VALUE vmax, v; if (argc == 0) { return rb_float_new(genrand_real(&rnd->mt)); -- cgit v1.2.3