Commit 8057eb93 authored by Julien Ammous's avatar Julien Ammous

removed unused variables / assigns never used

parent ac2adf34
......@@ -1018,7 +1018,7 @@ retry:
need = width;
CHECK(need + 1);
n = snprintf(&buf[blen], need + 1, "%*s", need, "");
snprintf(&buf[blen], need + 1, "%*s", need, "");
if (flags & FMINUS) {
if (!isnan(fval) && fval < 0.0)
buf[blen++] = '-';
......
......@@ -294,7 +294,7 @@ mrb_ary_cmp(mrb_state *mrb, mrb_value ary1)
{
mrb_value ary2;
struct RArray *a1, *a2;
mrb_value r = mrb_nil_value();
mrb_value r;
mrb_int i, len;
mrb_get_args(mrb, "o", &ary2);
......
......@@ -644,7 +644,6 @@ mrb_get_args(mrb_state *mrb, const char *format, ...)
*pl = argc-i;
if (*pl > 0) {
*var = sp;
i = argc;
}
i = argc;
sp += *pl;
......
......@@ -1004,7 +1004,6 @@ gen_literal_array(codegen_scope *s, node *tree, int sym, int val)
tree = tree->cdr;
}
if (j > 0) {
j = 0;
++i;
if (sym)
gen_send_intern(s);
......
......@@ -872,7 +872,7 @@ mrb_vm_const_get(mrb_state *mrb, mrb_sym sym)
if (!c) c = mrb->ci->target_class;
if (c) {
struct RClass *c2 = c;
struct RClass *c2;
mrb_value v;
if (c->iv && iv_get(mrb, c->iv, sym, &v)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment