Ticket #263: Cleaned up a bit of un-needed code from the last change.

This commit is contained in:
James Muehlner
2013-08-09 10:03:18 -07:00
parent 8e35804c85
commit 18836df861

View File

@@ -38,12 +38,9 @@ package net.sourceforge.guacamole.net.auth.mysql;
* ***** END LICENSE BLOCK ***** */
import com.google.inject.Inject;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.sourceforge.guacamole.GuacamoleException;
import net.sourceforge.guacamole.net.auth.mysql.dao.ConnectionHistoryMapper;
@@ -62,7 +59,7 @@ public class ActiveConnectionMap {
/**
* Represents the count of users currently using a MySQL connection.
*/
public class Connection implements Comparable<Connection> {
public class Connection {
/**
* The ID of the MySQL connection that this Connection represents.
@@ -114,12 +111,6 @@ public class ActiveConnectionMap {
this.connectionID = connectionID;
this.currentUserCount = 0;
}
@Override
public int compareTo(Connection other) {
// Sort only based on current user count
return this.currentUserCount - other.currentUserCount;
}
}
/**