Skip to content

Commit

Permalink
[core] Removed unused struct FByOldestActive.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Aug 10, 2022
1 parent 7f12138 commit 5ae3b00
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion srtcore/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ class CUDT
friend class CRcvUList;
friend class PacketFilter;
friend class CUDTGroup;
friend struct FByOldestActive; // this functional will use private fields
friend class TestMockCUDT; // unit tests

typedef sync::steady_clock::time_point time_point;
Expand Down
12 changes: 0 additions & 12 deletions srtcore/group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3785,18 +3785,6 @@ void CUDTGroup::sendBackup_CloseBrokenSockets(SendBackupCtx& w_sendBackupCtx)
// TODO: all broken members are to be removed from the context now???
}

struct FByOldestActive
{
typedef CUDTGroup::gli_t gli_t;
bool operator()(gli_t a, gli_t b)
{
CUDT& x = a->ps->core();
CUDT& y = b->ps->core();

return x.m_tsFreshActivation < y.m_tsFreshActivation;
}
};

// [[using locked(this->m_GroupLock)]]
void CUDTGroup::sendBackup_RetryWaitBlocked(SendBackupCtx& w_sendBackupCtx,
int& w_final_stat,
Expand Down

0 comments on commit 5ae3b00

Please sign in to comment.