From 7318949c467aaf5a29d045b4e9f38ac5ac20aadb Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 20 Dec 2016 14:00:59 +1100 Subject: [PATCH] py/modbuiltins: Remove unreachable code. --- py/modbuiltins.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/py/modbuiltins.c b/py/modbuiltins.c index cbdcc9aae0..b7c8ff2601 100644 --- a/py/modbuiltins.c +++ b/py/modbuiltins.c @@ -475,9 +475,6 @@ STATIC mp_obj_t mp_builtin_round(size_t n_args, const mp_obj_t *args) { } else if (val - rounded == -0.5) { r &= ~1; } - if (n_args > 1) { - return mp_obj_new_float(r); - } #else mp_int_t r = mp_obj_get_int(o_in); #endif