From 7352c9c0f770633e695aa8f48b647aa7a78e49c7 Mon Sep 17 00:00:00 2001 From: Gaurav Date: Tue, 3 Nov 2015 14:22:44 +0530 Subject: [PATCH] Remove not reachable condition. Line no 138-139 suggest if condition satisfy if n_actual <=max_arity : if (n_actual + f->m_nkeyword_values >= min_arity && n_actual <= max_arity) So condition at Line no 161 is not reachable. --- src/object/function.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/object/function.cpp b/src/object/function.cpp index 5c59cc77..e612963b 100644 --- a/src/object/function.cpp +++ b/src/object/function.cpp @@ -158,11 +158,6 @@ PyObject* function::call(PyObject* args, PyObject* keywords) const { // no argument preprocessing } - else if (n_actual > max_arity) - { - // too many arguments - inner_args = handle<>(); - } else { // build a new arg tuple, will adjust its size later