Commit a6ff3fc8 authored by God Ly's avatar God Ly Committed by it2000

unused variables commented

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11685 b35dd754-fafc-0310-a699-88a17e54d16e
parent d160a052
...@@ -162,7 +162,7 @@ public class SidebarTag extends BodyTagSupport { ...@@ -162,7 +162,7 @@ public class SidebarTag extends BodyTagSupport {
// Get the initial subpage and page IDs // Get the initial subpage and page IDs
String subPageID = (String)request.getAttribute("subPageID"); String subPageID = (String)request.getAttribute("subPageID");
String pageID = (String)request.getAttribute("pageID"); String pageID = (String)request.getAttribute("pageID");
String subnavID = (String)request.getAttribute("subnavID"); //String subnavID = (String)request.getAttribute("subnavID");
// If the pageID is null, use the subPageID to set it. If both the pageID and // If the pageID is null, use the subPageID to set it. If both the pageID and
// subPageIDs are null, return because these are key to execution of the tag. // subPageIDs are null, return because these are key to execution of the tag.
...@@ -200,7 +200,7 @@ public class SidebarTag extends BodyTagSupport { ...@@ -200,7 +200,7 @@ public class SidebarTag extends BodyTagSupport {
// Loop through all items in the root, print them out // Loop through all items in the root, print them out
if (currentTab != null && subnav != null) { if (currentTab != null && subnav != null) {
Element sidebar = subnav.getParent().getParent(); Element sidebar = subnav.getParent().getParent();
String header = sidebar.attributeValue("name"); //String header = sidebar.attributeValue("name");
String pluginName = sidebar.attributeValue("plugin"); String pluginName = sidebar.attributeValue("plugin");
// Print the header: // Print the header:
String hcss = getHeadercss(); String hcss = getHeadercss();
......
...@@ -200,9 +200,9 @@ public class AuditManagerImpl extends BasicModule implements AuditManager { ...@@ -200,9 +200,9 @@ public class AuditManagerImpl extends BasicModule implements AuditManager {
} }
private void saveXPath() { private void saveXPath() {
String[] filters = new String[xpath.size()];
filters = (String[]) xpath.toArray(filters);
// TODO: save XPath values! // TODO: save XPath values!
//String[] filters = new String[xpath.size()];
//filters = (String[]) xpath.toArray(filters);
} }
public Iterator getXPathFilters() { public Iterator getXPathFilters() {
......
...@@ -93,7 +93,7 @@ public class LdapAuthorizationMapping implements AuthorizationMapping { ...@@ -93,7 +93,7 @@ public class LdapAuthorizationMapping implements AuthorizationMapping {
try { try {
Log.debug("LdapAuthorizationMapping: Starting LDAP search..."); Log.debug("LdapAuthorizationMapping: Starting LDAP search...");
String usernameField = manager.getUsernameField(); String usernameField = manager.getUsernameField();
String baseDN = manager.getBaseDN(); //String baseDN = manager.getBaseDN();
boolean subTreeSearch = manager.isSubTreeSearch(); boolean subTreeSearch = manager.isSubTreeSearch();
ctx = manager.getContext(); ctx = manager.getContext();
SearchControls constraints = new SearchControls(); SearchControls constraints = new SearchControls();
......
...@@ -1290,7 +1290,7 @@ public class MultiUserChatServiceImpl implements Component, MultiUserChatService ...@@ -1290,7 +1290,7 @@ public class MultiUserChatServiceImpl implements Component, MultiUserChatService
fieldSubj.setLabel(LocaleUtils.getLocalizedString("muc.extended.info.subject")); fieldSubj.setLabel(LocaleUtils.getLocalizedString("muc.extended.info.subject"));
fieldSubj.addValue(room.getSubject()); fieldSubj.addValue(room.getSubject());
final FormField fieldOcc = dataForm.addField(); /*final FormField fieldOcc =*/ dataForm.addField();
fieldSubj.setVariable("muc#roominfo_occupants"); fieldSubj.setVariable("muc#roominfo_occupants");
fieldSubj.setLabel(LocaleUtils.getLocalizedString("muc.extended.info.occupants")); fieldSubj.setLabel(LocaleUtils.getLocalizedString("muc.extended.info.occupants"));
fieldSubj.addValue(Integer.toString(room.getOccupantsCount())); fieldSubj.addValue(Integer.toString(room.getOccupantsCount()));
......
...@@ -125,7 +125,7 @@ public class Roster implements Cacheable, Externalizable { ...@@ -125,7 +125,7 @@ public class Roster implements Cacheable, Externalizable {
// Get the shared groups of this user // Get the shared groups of this user
Collection<Group> sharedGroups = rosterManager.getSharedGroups(username); Collection<Group> sharedGroups = rosterManager.getSharedGroups(username);
Collection<Group> userGroups = GroupManager.getInstance().getGroups(getUserJID()); //Collection<Group> userGroups = GroupManager.getInstance().getGroups(getUserJID());
// Add RosterItems that belong to the personal roster // Add RosterItems that belong to the personal roster
rosterItemProvider = RosterItemProvider.getInstance(); rosterItemProvider = RosterItemProvider.getInstance();
......
...@@ -198,7 +198,7 @@ public class UserManager implements IQResultListener { ...@@ -198,7 +198,7 @@ public class UserManager implements IQResultListener {
String username = user.getUsername(); String username = user.getUsername();
// Make sure that the username is valid. // Make sure that the username is valid.
try { try {
username = Stringprep.nodeprep(username); /*username =*/ Stringprep.nodeprep(username);
} }
catch (StringprepException se) { catch (StringprepException se) {
throw new IllegalArgumentException("Invalid username: " + username, se); throw new IllegalArgumentException("Invalid username: " + username, se);
......
...@@ -551,7 +551,7 @@ public class Base64 ...@@ -551,7 +551,7 @@ public class Base64
// Isolate options // Isolate options
int gzip = (options & GZIP); int gzip = (options & GZIP);
int dontBreakLines = (options & DONT_BREAK_LINES); //int dontBreakLines = (options & DONT_BREAK_LINES);
try try
{ {
......
...@@ -981,22 +981,22 @@ public class StringUtils { ...@@ -981,22 +981,22 @@ public class StringUtils {
public static String getTimeFromLong(long diff) { public static String getTimeFromLong(long diff) {
final String HOURS = "h"; final String HOURS = "h";
final String MINUTES = "min"; final String MINUTES = "min";
final String SECONDS = "sec"; //final String SECONDS = "sec";
final long MS_IN_A_DAY = 1000 * 60 * 60 * 24; final long MS_IN_A_DAY = 1000 * 60 * 60 * 24;
final long MS_IN_AN_HOUR = 1000 * 60 * 60; final long MS_IN_AN_HOUR = 1000 * 60 * 60;
final long MS_IN_A_MINUTE = 1000 * 60; final long MS_IN_A_MINUTE = 1000 * 60;
final long MS_IN_A_SECOND = 1000; final long MS_IN_A_SECOND = 1000;
Date currentTime = new Date(); //Date currentTime = new Date();
long numDays = diff / MS_IN_A_DAY; //long numDays = diff / MS_IN_A_DAY;
diff = diff % MS_IN_A_DAY; diff = diff % MS_IN_A_DAY;
long numHours = diff / MS_IN_AN_HOUR; long numHours = diff / MS_IN_AN_HOUR;
diff = diff % MS_IN_AN_HOUR; diff = diff % MS_IN_AN_HOUR;
long numMinutes = diff / MS_IN_A_MINUTE; long numMinutes = diff / MS_IN_A_MINUTE;
diff = diff % MS_IN_A_MINUTE; diff = diff % MS_IN_A_MINUTE;
long numSeconds = diff / MS_IN_A_SECOND; //long numSeconds = diff / MS_IN_A_SECOND;
diff = diff % MS_IN_A_SECOND; diff = diff % MS_IN_A_SECOND;
long numMilliseconds = diff; //long numMilliseconds = diff;
StringBuffer buf = new StringBuffer(); StringBuffer buf = new StringBuffer();
if (numHours > 0) { if (numHours > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment