From 7d88f4ee050856b8fef5f260cfe1b3aeec201fda Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Mon, 9 Apr 2012 13:56:59 -0500 Subject: Removed unused private fields. Most of unused private fields have been removed because they generate warnings in Eclipse. Some are kept because it might be useful later. Ticket #139 --- .../netscape/cms/servlet/profile/ProfileListServlet.java | 5 ----- .../com/netscape/cms/servlet/profile/ProfileServlet.java | 2 -- .../cms/servlet/profile/ProfileSubmitCMCServlet.java | 13 ------------- .../netscape/cms/servlet/profile/ProfileSubmitServlet.java | 1 - 4 files changed, 21 deletions(-) (limited to 'base/common/src/com/netscape/cms/servlet/profile') diff --git a/base/common/src/com/netscape/cms/servlet/profile/ProfileListServlet.java b/base/common/src/com/netscape/cms/servlet/profile/ProfileListServlet.java index fed0b1ee2..6acc1634c 100644 --- a/base/common/src/com/netscape/cms/servlet/profile/ProfileListServlet.java +++ b/base/common/src/com/netscape/cms/servlet/profile/ProfileListServlet.java @@ -49,10 +49,6 @@ public class ProfileListServlet extends ProfileServlet { */ private static final long serialVersionUID = -5118812083812548395L; - private static final String PROP_AUTHORITY_ID = "authorityId"; - - private String mAuthorityId = null; - public ProfileListServlet() { super(); } @@ -65,7 +61,6 @@ public class ProfileListServlet extends ProfileServlet { */ public void init(ServletConfig sc) throws ServletException { super.init(sc); - mAuthorityId = sc.getInitParameter(PROP_AUTHORITY_ID); } /** diff --git a/base/common/src/com/netscape/cms/servlet/profile/ProfileServlet.java b/base/common/src/com/netscape/cms/servlet/profile/ProfileServlet.java index 9eac8eebd..e975161da 100644 --- a/base/common/src/com/netscape/cms/servlet/profile/ProfileServlet.java +++ b/base/common/src/com/netscape/cms/servlet/profile/ProfileServlet.java @@ -128,7 +128,6 @@ public class ProfileServlet extends CMSServlet { public final static String ARG_OUTPUT_VAL = "outputVal"; private static final String PROP_TEMPLATE = "templatePath"; - private static final String PROP_AUTH_MGR_ID = "authMgrId"; private final static String PROP_AUTHMGR = "AuthMgr"; private final static String PROP_CLIENTAUTH = "GetClientCert"; private static final String PROP_PROFILE_SUB_ID = "profileSubId"; @@ -146,7 +145,6 @@ public class ProfileServlet extends CMSServlet { private final static String HDR_LANG = "accept-language"; private String mTemplate = null; - private String mAuthMgrId = null; protected String mId = null; protected String mGetClientCert = "false"; diff --git a/base/common/src/com/netscape/cms/servlet/profile/ProfileSubmitCMCServlet.java b/base/common/src/com/netscape/cms/servlet/profile/ProfileSubmitCMCServlet.java index 93e5b6a4b..16fa2a394 100644 --- a/base/common/src/com/netscape/cms/servlet/profile/ProfileSubmitCMCServlet.java +++ b/base/common/src/com/netscape/cms/servlet/profile/ProfileSubmitCMCServlet.java @@ -77,22 +77,11 @@ public class ProfileSubmitCMCServlet extends ProfileServlet { private static final long serialVersionUID = -8017841111435988197L; private static final String ARG_AUTH_TOKEN = "auth_token"; private static final String PROP_PROFILE_ID = "profileId"; - private static final String PROP_AUTHORITY_ID = "authorityId"; - private String mOutputTemplateClassName = null; private String mProfileId = null; private String mProfileSubId = null; - private String mReqType = null; - private String mAuthorityId = null; - private String requestBinary = null; private String requestB64 = null; - private final static String[] SIGNED_AUDIT_AUTOMATED_REJECTION_REASON = new String[] { - - /* 0 */"automated profile cert request rejection: " - + "indeterminate reason for inability to process " - + "cert request due to an EBaseException" - }; private final static String LOGGING_SIGNED_AUDIT_CERT_REQUEST_PROCESSED = "LOGGING_SIGNED_AUDIT_CERT_REQUEST_PROCESSED_5"; @@ -111,9 +100,7 @@ public class ProfileSubmitCMCServlet extends ProfileServlet { */ public void init(ServletConfig sc) throws ServletException { super.init(sc); - mAuthorityId = sc.getInitParameter(PROP_AUTHORITY_ID); mProfileId = sc.getInitParameter(PROP_PROFILE_ID); - mOutputTemplateClassName = sc.getInitParameter("outputTemplateClass"); mRenderResult = false; } diff --git a/base/common/src/com/netscape/cms/servlet/profile/ProfileSubmitServlet.java b/base/common/src/com/netscape/cms/servlet/profile/ProfileSubmitServlet.java index 7292be519..85ef4fa0f 100644 --- a/base/common/src/com/netscape/cms/servlet/profile/ProfileSubmitServlet.java +++ b/base/common/src/com/netscape/cms/servlet/profile/ProfileSubmitServlet.java @@ -92,7 +92,6 @@ public class ProfileSubmitServlet extends ProfileServlet { private String mProfileId = null; private String mProfileSubId = null; - private String mReqType = null; private String mAuthorityId = null; private final static String[] SIGNED_AUDIT_AUTOMATED_REJECTION_REASON = new String[] { -- cgit