GUACAMOLE-38: Remove unnecessary code.
This commit is contained in:
1 parent
74ab18beb1
commit
fc63007e59
1 file changed
+1
-11
+1
-11
@@ -77,18 +77,8 @@ public class QuickConnectDirectory extends SimpleConnectionDirectory {
|
|||||||
@Override
|
@Override
|
||||||
public void add(Connection object) throws GuacamoleException {
|
public void add(Connection object) throws GuacamoleException {
|
||||||
|
|
||||||
// Get the next connection ID.
|
put(new QuickConnection(object));
|
||||||
String connectionId = getNextConnectionID().toString();
|
|
||||||
|
|
||||||
// Set up identifier and parent on original object.
|
|
||||||
object.setIdentifier(connectionId);
|
|
||||||
object.setParentIdentifier(ROOT_IDENTIFIER);
|
|
||||||
|
|
||||||
// Add connection to the directory
|
|
||||||
putConnection(new QuickConnection(object));
|
|
||||||
|
|
||||||
// Add connection to the tree
|
|
||||||
this.rootGroup.addConnectionIdentifier(connectionId);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user