Remove unused code, fix typo and formatting (#207)
* Remove unused method. * Fix typos and formatting.
This commit is contained in:
parent
8ffa9030f4
commit
9a580a9401
@ -1489,39 +1489,6 @@ public class Agent
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the local <tt>LocalCandidate</tt> with the specified
|
||||
* <tt>localAddress</tt> if it belongs to any of this {@link Agent}'s
|
||||
* streams or <tt>null</tt> if it doesn't.
|
||||
*
|
||||
* @param localAddress the {@link TransportAddress} we are looking for.
|
||||
* @param ufrag local ufrag
|
||||
* @return the local <tt>LocalCandidate</tt> with the specified
|
||||
* <tt>localAddress</tt> if it belongs to any of this {@link Agent}'s
|
||||
* streams or <tt>null</tt> if it doesn't.
|
||||
*/
|
||||
public LocalCandidate findLocalCandidate(
|
||||
TransportAddress localAddress,
|
||||
String ufrag)
|
||||
{
|
||||
for (IceMediaStream stream : mediaStreams.values())
|
||||
{
|
||||
for (Component c : stream.getComponents())
|
||||
{
|
||||
for (LocalCandidate cnd : c.getLocalCandidates())
|
||||
{
|
||||
if (cnd != null
|
||||
&& cnd.getUfrag() != null
|
||||
&& cnd.getUfrag().equals(ufrag))
|
||||
{
|
||||
return cnd;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the remote <tt>Candidate</tt> with the specified
|
||||
* <tt>remoteAddress</tt> if it belongs to any of this {@link Agent}'s
|
||||
|
||||
@ -172,7 +172,7 @@ public class CandidatePair
|
||||
* @param localCnd the local <tt>Candidate</tt> of this
|
||||
* <tt>CandidatePair</tt>.
|
||||
*/
|
||||
protected void setLocalCandidate( LocalCandidate localCnd)
|
||||
protected void setLocalCandidate(LocalCandidate localCnd)
|
||||
{
|
||||
this.localCandidate = localCnd;
|
||||
}
|
||||
|
||||
@ -155,7 +155,9 @@ public class ComponentSocket
|
||||
LocalCandidate localCandidate = pair.getLocalCandidate();
|
||||
LocalCandidate base = localCandidate.getBase();
|
||||
if (base != null)
|
||||
{
|
||||
localCandidate = base;
|
||||
}
|
||||
|
||||
TransportAddress remoteAddress = null;
|
||||
RemoteCandidate remoteCandidate = pair.getRemoteCandidate();
|
||||
|
||||
@ -206,7 +206,7 @@ class MessageProcessingTask
|
||||
// On processed callback must be invoked in all cases, even when
|
||||
// cancellation or early exist happen, otherwise
|
||||
// NetAccessManager internal tracking of pooled and active
|
||||
// message processors will missbehave.
|
||||
// message processors will misbehave.
|
||||
if (onProcessed != null)
|
||||
{
|
||||
onProcessed.accept(this);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user