Skip to content

Commit

Permalink
[core] Removed unused struct HaveState
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Aug 24, 2022
1 parent 96d0c12 commit 293a677
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions srtcore/group.cpp
Original file line number Diff line number Diff line change
@@ -780,16 +780,6 @@ void CUDTGroup::getOpt(SRT_SOCKOPT optname, void* pw_optval, int& w_optlen)
return ps->core().getOpt(optname, (pw_optval), (w_optlen));
}

struct HaveState : public unary_function<pair<SRTSOCKET, SRT_SOCKSTATUS>, bool>
{
SRT_SOCKSTATUS s;
HaveState(SRT_SOCKSTATUS ss)
: s(ss)
{
}
bool operator()(pair<SRTSOCKET, SRT_SOCKSTATUS> i) const { return i.second == s; }
};

SRT_SOCKSTATUS CUDTGroup::getStatus()
{
typedef vector<pair<SRTSOCKET, SRT_SOCKSTATUS> > states_t;

0 comments on commit 293a677

Please sign in to comment.