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;
|
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
|
* Returns the remote <tt>Candidate</tt> with the specified
|
||||||
* <tt>remoteAddress</tt> if it belongs to any of this {@link Agent}'s
|
* <tt>remoteAddress</tt> if it belongs to any of this {@link Agent}'s
|
||||||
|
|||||||
@ -155,7 +155,9 @@ public class ComponentSocket
|
|||||||
LocalCandidate localCandidate = pair.getLocalCandidate();
|
LocalCandidate localCandidate = pair.getLocalCandidate();
|
||||||
LocalCandidate base = localCandidate.getBase();
|
LocalCandidate base = localCandidate.getBase();
|
||||||
if (base != null)
|
if (base != null)
|
||||||
|
{
|
||||||
localCandidate = base;
|
localCandidate = base;
|
||||||
|
}
|
||||||
|
|
||||||
TransportAddress remoteAddress = null;
|
TransportAddress remoteAddress = null;
|
||||||
RemoteCandidate remoteCandidate = pair.getRemoteCandidate();
|
RemoteCandidate remoteCandidate = pair.getRemoteCandidate();
|
||||||
|
|||||||
@ -206,7 +206,7 @@ class MessageProcessingTask
|
|||||||
// On processed callback must be invoked in all cases, even when
|
// On processed callback must be invoked in all cases, even when
|
||||||
// cancellation or early exist happen, otherwise
|
// cancellation or early exist happen, otherwise
|
||||||
// NetAccessManager internal tracking of pooled and active
|
// NetAccessManager internal tracking of pooled and active
|
||||||
// message processors will missbehave.
|
// message processors will misbehave.
|
||||||
if (onProcessed != null)
|
if (onProcessed != null)
|
||||||
{
|
{
|
||||||
onProcessed.accept(this);
|
onProcessed.accept(this);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user