diff --git a/include/pybind11/gil.h b/include/pybind11/gil.h index 6b0edaee4..5fb81c86d 100644 --- a/include/pybind11/gil.h +++ b/include/pybind11/gil.h @@ -147,8 +147,6 @@ public: // NOLINTNEXTLINE(cppcoreguidelines-prefer-member-initializer) tstate = PyEval_SaveThread(); if (disassoc) { - // Python >= 3.7 can remove this, it's an int before 3.7 - // NOLINTNEXTLINE(readability-qualified-auto) auto key = internals.tstate; PYBIND11_TLS_DELETE_VALUE(key); } @@ -173,8 +171,6 @@ public: PyEval_RestoreThread(tstate); } if (disassoc) { - // Python >= 3.7 can remove this, it's an int before 3.7 - // NOLINTNEXTLINE(readability-qualified-auto) auto key = detail::get_internals().tstate; PYBIND11_TLS_REPLACE_VALUE(key, tstate); }