Browse Source

Remove useless replace

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 7 years ago
parent
commit
250cc758f9
1 changed files with 0 additions and 3 deletions
  1. 0 3
      app/src/main/java/com/nextcloud/talk/utils/PushUtils.java

+ 0 - 3
app/src/main/java/com/nextcloud/talk/utils/PushUtils.java

@@ -377,9 +377,6 @@ public class PushUtils {
     }
 
     private Key readKeyFromString(boolean readPublicKey, String keyString) {
-        keyString = keyString.replace("-----BEGIN PUBLIC KEY-----", "");
-        keyString = keyString.replace("-----END PUBLIC KEY-----", "");
-
         if (readPublicKey) {
             keyString = keyString.replaceAll("\\n", "").replace("-----BEGIN PUBLIC KEY-----",
                     "").replace("-----END PUBLIC KEY-----", "");