浏览代码

Hide and delete no longer needed public methods

Although the rest of the methods are no longer needed since the handling
of WebRTC messages was moved to PeerConnectionWrapper "setSessionId()"
was not needed even before that.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Daniel Calviño Sánchez 2 年之前
父节点
当前提交
0e36002036
共有 1 个文件被更改,包括 3 次插入11 次删除
  1. 3 11
      app/src/main/java/com/nextcloud/talk/webrtc/PeerConnectionWrapper.java

+ 3 - 11
app/src/main/java/com/nextcloud/talk/webrtc/PeerConnectionWrapper.java

@@ -169,7 +169,7 @@ public class PeerConnectionWrapper {
         }
     }
 
-    public void drainIceCandidates() {
+    private void drainIceCandidates() {
 
         if (peerConnection != null) {
             for (IceCandidate iceCandidate : iceCandidates) {
@@ -180,11 +180,7 @@ public class PeerConnectionWrapper {
         }
     }
 
-    public MagicSdpObserver getMagicSdpObserver() {
-        return magicSdpObserver;
-    }
-
-    public void addCandidate(IceCandidate iceCandidate) {
+    private void addCandidate(IceCandidate iceCandidate) {
         if (peerConnection != null && peerConnection.getRemoteDescription() != null) {
             peerConnection.addIceCandidate(iceCandidate);
         } else {
@@ -224,10 +220,6 @@ public class PeerConnectionWrapper {
         return sessionId;
     }
 
-    public void setSessionId(String sessionId) {
-        this.sessionId = sessionId;
-    }
-
     public String getNick() {
         if (!TextUtils.isEmpty(nick)) {
             return nick;
@@ -236,7 +228,7 @@ public class PeerConnectionWrapper {
         }
     }
 
-    public void setNick(String nick) {
+    private void setNick(String nick) {
         this.nick = nick;
     }