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 {
// Get the initial subpage and page IDs
String subPageID = (String)request.getAttribute("subPageID");
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
// subPageIDs are null, return because these are key to execution of the tag.
......@@ -200,7 +200,7 @@ public class SidebarTag extends BodyTagSupport {
// Loop through all items in the root, print them out
if (currentTab != null && subnav != null) {
Element sidebar = subnav.getParent().getParent();
String header = sidebar.attributeValue("name");
//String header = sidebar.attributeValue("name");
String pluginName = sidebar.attributeValue("plugin");
// Print the header:
String hcss = getHeadercss();
......
......@@ -200,9 +200,9 @@ public class AuditManagerImpl extends BasicModule implements AuditManager {
}
private void saveXPath() {
String[] filters = new String[xpath.size()];
filters = (String[]) xpath.toArray(filters);
// TODO: save XPath values!
//String[] filters = new String[xpath.size()];
//filters = (String[]) xpath.toArray(filters);
}
public Iterator getXPathFilters() {
......
......@@ -93,7 +93,7 @@ public class LdapAuthorizationMapping implements AuthorizationMapping {
try {
Log.debug("LdapAuthorizationMapping: Starting LDAP search...");
String usernameField = manager.getUsernameField();
String baseDN = manager.getBaseDN();
//String baseDN = manager.getBaseDN();
boolean subTreeSearch = manager.isSubTreeSearch();
ctx = manager.getContext();
SearchControls constraints = new SearchControls();
......
......@@ -1290,7 +1290,7 @@ public class MultiUserChatServiceImpl implements Component, MultiUserChatService
fieldSubj.setLabel(LocaleUtils.getLocalizedString("muc.extended.info.subject"));
fieldSubj.addValue(room.getSubject());
final FormField fieldOcc = dataForm.addField();
/*final FormField fieldOcc =*/ dataForm.addField();
fieldSubj.setVariable("muc#roominfo_occupants");
fieldSubj.setLabel(LocaleUtils.getLocalizedString("muc.extended.info.occupants"));
fieldSubj.addValue(Integer.toString(room.getOccupantsCount()));
......
......@@ -125,7 +125,7 @@ public class Roster implements Cacheable, Externalizable {
// Get the shared groups of this user
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
rosterItemProvider = RosterItemProvider.getInstance();
......
......@@ -198,7 +198,7 @@ public class UserManager implements IQResultListener {
String username = user.getUsername();
// Make sure that the username is valid.
try {
username = Stringprep.nodeprep(username);
/*username =*/ Stringprep.nodeprep(username);
}
catch (StringprepException se) {
throw new IllegalArgumentException("Invalid username: " + username, se);
......
......@@ -551,7 +551,7 @@ public class Base64
// Isolate options
int gzip = (options & GZIP);
int dontBreakLines = (options & DONT_BREAK_LINES);
//int dontBreakLines = (options & DONT_BREAK_LINES);
try
{
......
......@@ -981,22 +981,22 @@ public class StringUtils {
public static String getTimeFromLong(long diff) {
final String HOURS = "h";
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_AN_HOUR = 1000 * 60 * 60;
final long MS_IN_A_MINUTE = 1000 * 60;
final long MS_IN_A_SECOND = 1000;
Date currentTime = new Date();
long numDays = diff / MS_IN_A_DAY;
//Date currentTime = new Date();
//long numDays = diff / MS_IN_A_DAY;
diff = diff % MS_IN_A_DAY;
long numHours = diff / MS_IN_AN_HOUR;
diff = diff % MS_IN_AN_HOUR;
long numMinutes = 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;
long numMilliseconds = diff;
//long numMilliseconds = diff;
StringBuffer buf = new StringBuffer();
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