mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 16:40:32 +00:00
Removed dead code
This commit is contained in:
parent
272be36dd9
commit
28f167fd99
@ -35,14 +35,6 @@ public class TLSSocketFactoryCompat extends SSLSocketFactory {
|
|||||||
internalSSLSocketFactory = context.getSocketFactory();
|
internalSSLSocketFactory = context.getSocketFactory();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public TLSSocketFactoryCompat(final TrustManager[] tm)
|
|
||||||
throws KeyManagementException, NoSuchAlgorithmException {
|
|
||||||
final SSLContext context = SSLContext.getInstance("TLS");
|
|
||||||
context.init(null, tm, new java.security.SecureRandom());
|
|
||||||
internalSSLSocketFactory = context.getSocketFactory();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static TLSSocketFactoryCompat getInstance()
|
public static TLSSocketFactoryCompat getInstance()
|
||||||
throws NoSuchAlgorithmException, KeyManagementException {
|
throws NoSuchAlgorithmException, KeyManagementException {
|
||||||
if (instance != null) {
|
if (instance != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user