Raytracing: remove some more deprecated Py2 code

This commit is contained in:
wmayer
2021-04-26 11:04:26 +02:00
parent 72a3b9cb51
commit 83dcfae0f6
2 changed files with 1 additions and 12 deletions

View File

@@ -203,10 +203,6 @@ private:
vecs[i][l] = PyFloat_AsDouble(temp);
else if (PyLong_Check(temp))
vecs[i][l] = (double) PyLong_AsLong(temp);
#if PY_MAJOR_VERSION < 3
else if (PyInt_Check(temp))
vecs[i][l] = (double) PyInt_AsLong(temp);
#endif
else
throw Py::ValueError("Wrong parameter format, four Tuple of three floats needed!");
}