Commit f3d3087a authored by Jason Rhinelander's avatar Jason Rhinelander

Remove "virtual" keyword from overridden methods

It doesn't do anything; any method that can be overridden is already
virtual.
parent 2ebc436d
......@@ -21,16 +21,16 @@ public:
// Inherit constructors
using Base::Base;
virtual void added() override {
void added() override {
OptimizerGlue::applyGlue(this->simulation(), this->sharedSelf(), py::cast(this));
PYBIND11_OVERLOAD_NAME(void, Base, "_added", added);
}
virtual void removed() override {
void removed() override {
/* Simulation takes a reference during add(), we release it during member.removed() */
py::cast(this).dec_ref();
PYBIND11_OVERLOAD_NAME(void, Base, "_added", removed);
}
virtual void weakDepRemoved(SharedMember<Member> removed, eris_id_t old_id) override {
void weakDepRemoved(SharedMember<Member> removed, eris_id_t old_id) override {
PYBIND11_OVERLOAD_NAME(void, Base, "weak_dep_removed", weakDepRemoved, removed, old_id);
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment