Skip to content

Commit

Permalink
Merge pull request #407 from leapmotion/dep-removesatcounter
Browse files Browse the repository at this point in the history
Eliminate deprecated RemoveSatCounter routine
  • Loading branch information
gtremper committed Feb 11, 2015
2 parents 8539e5e + c823d68 commit 20bfb06
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
5 changes: 0 additions & 5 deletions autowiring/AutoPacket.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ class AutoPacket:
/// </summary>
void AddSatCounter(SatCounter& satCounter);

/// <summary>
/// Removes all AutoFilter argument information for a recipient
/// </summary>
void RemoveSatCounter(const SatCounter& satCounter);

/// <summary>
/// Marks the specified entry as being unsatisfiable
/// </summary>
Expand Down
20 changes: 0 additions & 20 deletions src/autowiring/AutoPacket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,26 +121,6 @@ void AutoPacket::AddSatCounter(SatCounter& satCounter) {
}
}

void AutoPacket::RemoveSatCounter(const SatCounter& satCounter) {
for(auto pCur = satCounter.GetAutoFilterInput(); *pCur; pCur++) {
DecorationKey key(*pCur->ti, pCur->tshift);

DecorationDisposition* entry = &m_decorations[key];

// Decide what to do with this entry:
if (pCur->is_input) {
assert(!entry->m_subscribers.empty());
assert(&satCounter == entry->m_subscribers.back());
entry->m_subscribers.pop_back();
}
if (pCur->is_output) {
assert(!entry->m_publishers.empty());
assert(&satCounter == entry->m_publishers.back());
entry->m_publishers.pop_back();
}
}
}

void AutoPacket::MarkUnsatisfiable(const DecorationKey& key) {
// Perform unsatisfaction logic
if (key.tshift) {
Expand Down

0 comments on commit 20bfb06

Please sign in to comment.