git grep -I -E '3\.7' cleanup.

Removes two changes made under pybind/pybind11#3702
This commit is contained in:
Ralf W. Grosse-Kunstleve 2024-06-24 20:31:40 -07:00
parent af537e72bb
commit bb5b9d187b

View File

@ -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);
}