Commit 0df6e3e8 authored by Jason Rhinelander's avatar Jason Rhinelander

Remove redundant methods

The first method MemberID arguments already accept shared members
arguments.
parent 7df75988
......@@ -264,12 +264,6 @@ class Simulation : public std::enable_shared_from_this<Simulation>, private nonc
*/
void registerDependency(MemberID member, MemberID depends_on);
/** Same as above, but takes SharedMembers for convenience */
template <typename T1, typename T2>
void registerDependency(const SharedMember<T1> &member, const SharedMember<T2> &depends_on) {
registerDependency(member->id(), depends_on->id());
}
/** Records already-stored member `depends_on` is a weak dependency of `member`. In
* contrast to a non-weak dependency, the member is only notified of the removal of the
* dependent, it is not removed itself.
......@@ -279,12 +273,6 @@ class Simulation : public std::enable_shared_from_this<Simulation>, private nonc
*/
void registerWeakDependency(MemberID member, MemberID depends_on);
/// Same as above, but takes SharedMembers for convenience
template <typename T1, typename T2>
void registerWeakDependency(const SharedMember<T1> &member, const SharedMember<T2> &depends_on) {
registerWeakDependency(member->id(), depends_on->id());
}
/** Sets the maximum number of threads to use for subsequent calls to run(). The default
* value is 0 (which uses no threads at all; see below). If this is lowered between calls
* to run(), excess threads (if any) will be killed off at the beginning of the next run()
......
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