Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate Snoop and Unsnoop in CoreContext #596

Merged
merged 1 commit into from
Jun 19, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions autowiring/CoreContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -1002,13 +1002,6 @@ class CoreContext:
/// <param name="pRecipient">The recipient of the event</param>
void FilterFiringException(const JunctionBoxBase* pProxy, CoreObject* pRecipient);

/// <seealso cref="Snoop">Identical to RemoveSnooper</seealso>
void DEPRECATED(Snoop(const CoreObjectDescriptor& traits), "Use AddSnooper instead") { return AddSnooper(traits); }
template<class T>
void DEPRECATED(Snoop(const std::shared_ptr<T>& pSnooper), "Use AddSnooper instead");
template<class T>
void DEPRECATED(Snoop(const Autowired<T>& snooper), "Use AddSnooper instead");

/// <summary>
/// Runtime version of AddSnooper
/// </summary>
Expand Down Expand Up @@ -1043,13 +1036,6 @@ class CoreContext:
);
}

/// <seealso cref="RemoveSnooper">Identical to RemoveSnooper</seealso>
void DEPRECATED(Unsnoop(const CoreObjectDescriptor& traits), "Use RemoveSnooper instead") { return RemoveSnooper(traits); }
template<class T>
void DEPRECATED(Unsnoop(const std::shared_ptr<T>& pSnooper), "Use RemoveSnooper instead");
template<class T>
void DEPRECATED(Unsnoop(const Autowired<T>& snooper), "Use RemoveSnooper instead");

/// <summary>
/// Runtime version of RemoveSnooper
/// </summary>
Expand Down Expand Up @@ -1313,30 +1299,6 @@ void CoreContext::AutoRequireMicroBolt(void) {
Inject<MicroBolt<T, Sigil...>>();
}

template<class T>
void CoreContext::Snoop(const std::shared_ptr<T>& pSnooper)
{
return AddSnooper(pSnooper);
}

template<class T>
void CoreContext::Snoop(const Autowired<T>& snooper)
{
return AddSnooper(snooper);
}

template<class T>
void CoreContext::Unsnoop(const std::shared_ptr<T>& pSnooper)
{
return RemoveSnooper(pSnooper);
}

template<class T>
void CoreContext::Unsnoop(const Autowired<T>& snooper)
{
return RemoveSnooper(snooper);
}

template<class T>
class CoreContext::AutoFactory
{
Expand Down