Skip to content

Commit 28f167f

Browse files
committed
Removed dead code
1 parent 272be36 commit 28f167f

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

app/src/main/java/org/schabi/newpipe/util/TLSSocketFactoryCompat.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@ public TLSSocketFactoryCompat() throws KeyManagementException, NoSuchAlgorithmEx
3535
internalSSLSocketFactory = context.getSocketFactory();
3636
}
3737

38-
39-
public TLSSocketFactoryCompat(final TrustManager[] tm)
40-
throws KeyManagementException, NoSuchAlgorithmException {
41-
final SSLContext context = SSLContext.getInstance("TLS");
42-
context.init(null, tm, new java.security.SecureRandom());
43-
internalSSLSocketFactory = context.getSocketFactory();
44-
}
45-
4638
public static TLSSocketFactoryCompat getInstance()
4739
throws NoSuchAlgorithmException, KeyManagementException {
4840
if (instance != null) {

0 commit comments

Comments
 (0)