interpreter: Fix, removed a useless condition in call.
authorLucas Bajolet <r4pass@hotmail.com>
Fri, 4 Apr 2014 15:13:58 +0000 (11:13 -0400)
committerLucas Bajolet <r4pass@hotmail.com>
Mon, 7 Apr 2014 17:57:07 +0000 (13:57 -0400)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

src/naive_interpreter.nit

index 7b42204..9a25fa9 100644 (file)
@@ -908,10 +908,6 @@ redef class AExternMethPropdef
                        else if pname == "atof" then
                                return v.float_instance(recvval.to_f)
                        end
-               else if cname == "Int" then
-                       if pname == "rand" then
-                               return v.int_instance(args[0].to_i.rand)
-                       end
                else if cname == "Float" then
                        if pname == "cos" then
                                return v.float_instance(args[0].to_f.cos)