summaryrefslogtreecommitdiffstats
path: root/pki/base/silent/src/com/netscape/pkisilent/common/TestClient.java
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-12-07 11:02:06 -0500
committerAdam Young <ayoung@redhat.com>2011-12-20 20:39:09 -0500
commit1a37d6047e0db50d6809f716fc3035af1cb603fa (patch)
tree0ba12d3e5ea37d4b63a03e4df29b0fc37855dbff /pki/base/silent/src/com/netscape/pkisilent/common/TestClient.java
parent3425098266c4caebcf7dc58612ae5947e791c930 (diff)
downloadpki-1a37d6047e0db50d6809f716fc3035af1cb603fa.tar.gz
pki-1a37d6047e0db50d6809f716fc3035af1cb603fa.tar.xz
pki-1a37d6047e0db50d6809f716fc3035af1cb603fa.zip
Removal of unused private methods
These methods are uncallable. There might be some discussion about the private default constructores. The Rules of Java are different from C++: If there is any constructor defined, all the other defaults befome uncallable. Thus, the private default constructors are not needed. https://bugzilla.redhat.com/show_bug.cgi?id=728303 Conflicts: pki/base/ca/src/com/netscape/ca/CRLIssuingPoint.java
Diffstat (limited to 'pki/base/silent/src/com/netscape/pkisilent/common/TestClient.java')
-rw-r--r--pki/base/silent/src/com/netscape/pkisilent/common/TestClient.java16
1 files changed, 0 insertions, 16 deletions
diff --git a/pki/base/silent/src/com/netscape/pkisilent/common/TestClient.java b/pki/base/silent/src/com/netscape/pkisilent/common/TestClient.java
index fc2668565..d711e409e 100644
--- a/pki/base/silent/src/com/netscape/pkisilent/common/TestClient.java
+++ b/pki/base/silent/src/com/netscape/pkisilent/common/TestClient.java
@@ -19,10 +19,8 @@ package com.netscape.pkisilent.common;
import java.io.BufferedReader;
import java.io.FileInputStream;
-import java.io.IOException;
import java.io.InputStreamReader;
import java.net.ServerSocket;
-import java.net.Socket;
import java.util.Properties;
import org.mozilla.jss.crypto.X509Certificate;
@@ -468,20 +466,6 @@ public class TestClient implements SSLCertificateApprovalCallback {
return s;
}
- private static boolean isSocketUnused(String h, int p) {
-
- try {
-
- Socket ss = new Socket(h, p);
-
- ss.close();
- return false;
-
- } catch (IOException e) {
- return true;
- }
- }
-
/**
* returns FreePort in this machine . Takes a parmater portnumber. For example getFreePort("4026").
*/