Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill unused variable.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 23 Jan 2020 09:50:05 +0000 (10:50 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 23 Jan 2020 10:04:23 +0000 (11:04 +0100)
src/bindings/python/simgrid_python.cpp

index 6633388..0551aa8 100644 (file)
@@ -97,8 +97,7 @@ PYBIND11_MODULE(simgrid, m)
       .def("exit", &simgrid::s4u::this_actor::exit, "kill the current actor")
       .def("on_exit",
            [](py::object fun) {
-             ActorPtr act = Actor::self();
-             simgrid::s4u::this_actor::on_exit([act, fun](bool /*failed*/) {
+             simgrid::s4u::this_actor::on_exit([fun](bool /*failed*/) {
                try {
                  fun();
                } catch (const py::error_already_set& e) {