GUACAMOLE-724: Remove client-side "last used" timestamp (no longer needed).

The last-used timestamp was previously required to sort active clients
within the client panel in a sensible and deterministic order. This now
happens automatically via client groups, which are stored in an array
in order of last use. No code remains referencing the last-used
timestamp.
This commit is contained in:
Michael Jumper
2021-06-16 17:29:47 -07:00
parent 1f2cd94a65
commit 4b227fe8c6
2 changed files with 0 additions and 16 deletions

View File

@@ -460,12 +460,6 @@ angular.module('client').controller('clientController', ['$scope', '$routeParams
}); });
// Update last used timestamp when the active client changes
$scope.$watch('client', function clientChanged(client) {
if (client)
client.lastUsed = new Date().getTime();
});
// Update page icon when thumbnail changes // Update page icon when thumbnail changes
$scope.$watch('client.thumbnail.canvas', function thumbnailChanged(canvas) { $scope.$watch('client.thumbnail.canvas', function thumbnailChanged(canvas) {
iconService.setIcons(canvas); iconService.setIcons(canvas);

View File

@@ -83,16 +83,6 @@ angular.module('client').factory('ManagedClient', ['$rootScope', '$injector',
*/ */
this.id = template.id; this.id = template.id;
/**
* The time that the connection was last brought to the foreground of
* the current tab, as the number of milliseconds elapsed since
* midnight of January 1, 1970 UTC. If the connection has not yet been
* viewed, this will be 0.
*
* @type Number
*/
this.lastUsed = template.lastUsed || 0;
/** /**
* The actual underlying Guacamole client. * The actual underlying Guacamole client.
* *