Remove unused code, fix typo and formatting (#207)

* Remove unused method.

* Fix typos and formatting.
This commit is contained in:
bgrozev 2020-06-09 16:25:10 -05:00 committed by GitHub
parent 8ffa9030f4
commit 9a580a9401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 35 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -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();

View File

@ -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);