mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Ticket #263: Cleaned up a bit of un-needed code from the last change.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user