nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
interpreter: Fix, removed a useless condition in call.
[nit.git]
/
src
/
naive_interpreter.nit
diff --git
a/src/naive_interpreter.nit
b/src/naive_interpreter.nit
index
7b42204
..
9a25fa9
100644
(file)
--- 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 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)
else if cname == "Float" then
if pname == "cos" then
return v.float_instance(args[0].to_f.cos)