Browse Source

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 years ago
parent
commit
0e36002036

+ 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) {
         if (peerConnection != null) {
             for (IceCandidate iceCandidate : iceCandidates) {
             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) {
         if (peerConnection != null && peerConnection.getRemoteDescription() != null) {
             peerConnection.addIceCandidate(iceCandidate);
             peerConnection.addIceCandidate(iceCandidate);
         } else {
         } else {
@@ -224,10 +220,6 @@ public class PeerConnectionWrapper {
         return sessionId;
         return sessionId;
     }
     }
 
 
-    public void setSessionId(String sessionId) {
-        this.sessionId = sessionId;
-    }
-
     public String getNick() {
     public String getNick() {
         if (!TextUtils.isEmpty(nick)) {
         if (!TextUtils.isEmpty(nick)) {
             return nick;
             return nick;
@@ -236,7 +228,7 @@ public class PeerConnectionWrapper {
         }
         }
     }
     }
 
 
-    public void setNick(String nick) {
+    private void setNick(String nick) {
         this.nick = nick;
         this.nick = nick;
     }
     }