From 223945bd3622108b1cd25306f948552c20cc5ee3 Mon Sep 17 00:00:00 2001 From: grafixeyehero Date: Thu, 17 Oct 2019 21:33:19 +0300 Subject: [PATCH] clean up unused code --- .../apiclient/connectionmanager.js | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/src/bower_components/apiclient/connectionmanager.js b/src/bower_components/apiclient/connectionmanager.js index 5bd21f579c..8be95a0016 100644 --- a/src/bower_components/apiclient/connectionmanager.js +++ b/src/bower_components/apiclient/connectionmanager.js @@ -38,14 +38,6 @@ define(["events", "apiclient", "appStorage"], function (events, apiClientFactory }); } - function mergeServers(credentialProvider, list1, list2) { - for (var i = 0, length = list2.length; i < length; i++) { - credentialProvider.addOrUpdateServer(list1, list2[i]); - } - - return list1; - } - function updateServerInfo(server, systemInfo) { server.Name = systemInfo.ServerName; if (systemInfo.Id) { @@ -303,14 +295,6 @@ define(["events", "apiclient", "appStorage"], function (events, apiClientFactory }); } - function filterServers(servers, connectServers) { - return servers.filter(function (server) { - return !server.ExchangeToken || connectServers.filter(function (connectServer) { - return server.Id === connectServer.Id; - }).length > 0; - }); - } - function findServers() { return new Promise(function (resolve, reject) { var onFinish = function (foundServers) { @@ -495,18 +479,6 @@ define(["events", "apiclient", "appStorage"], function (events, apiClientFactory } } - function getCacheKey(feature, apiClient, options) { - options = options || {}; - var viewOnly = options.viewOnly; - var cacheKey = "regInfo-" + apiClient.serverId(); - - if (viewOnly) { - cacheKey += "-viewonly"; - } - - return cacheKey; - } - function addAppInfoToConnectRequest(request) { request.headers = request.headers || {}; request.headers["X-Application"] = appName + "/" + appVersion;