From 0e19904c39c192340df234e43108242e28abd05f Mon Sep 17 00:00:00 2001 From: Nick Krecklow Date: Wed, 29 Apr 2020 04:03:59 -0500 Subject: [PATCH] remove legacy, unused #getServerByRank method --- assets/js/servers.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/assets/js/servers.js b/assets/js/servers.js index 7db7371..da8df03 100644 --- a/assets/js/servers.js +++ b/assets/js/servers.js @@ -64,23 +64,6 @@ export class ServerRegistry { } } - getServerRankBy (serverRegistration, x, sort) { - const records = Object.values(this._registeredServers) - .map(x) - .filter(val => val !== undefined) - - // Invalidate any results that do not account for all serverRegistrations - if (records.length === this._registeredServers.length) { - records.sort(sort) - - // Pull matching data from target serverRegistration - // Assume indexOf cannot be -1 or val undefined since they have been pre-tested in the map call above - const val = x(serverRegistration) - const indexOf = records.indexOf(val) - return indexOf + 1 - } - } - getServerRegistrations = () => Object.values(this._registeredServers) reset () {