From: Lucas Bajolet Date: Fri, 4 Apr 2014 15:13:58 +0000 (-0400) Subject: interpreter: Fix, removed a useless condition in call. X-Git-Tag: v0.6.6~125^2 X-Git-Url: http://nitlanguage.org interpreter: Fix, removed a useless condition in call. Signed-off-by: Lucas Bajolet --- diff --git a/src/naive_interpreter.nit b/src/naive_interpreter.nit index 7b42204..9a25fa9 100644 --- a/src/naive_interpreter.nit +++ b/src/naive_interpreter.nit @@ -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)