mirror of
https://github.com/boostorg/python.git
synced 2026-01-23 17:52:17 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user