mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
removed unused variables / assigns never used
This commit is contained in:
@@ -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++] = '-';
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user