clean up unused code
This commit is contained in:
parent
1e3b03dde1
commit
223945bd36
1 changed files with 0 additions and 28 deletions
|
@ -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) {
|
function updateServerInfo(server, systemInfo) {
|
||||||
server.Name = systemInfo.ServerName;
|
server.Name = systemInfo.ServerName;
|
||||||
if (systemInfo.Id) {
|
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() {
|
function findServers() {
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
var onFinish = function (foundServers) {
|
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) {
|
function addAppInfoToConnectRequest(request) {
|
||||||
request.headers = request.headers || {};
|
request.headers = request.headers || {};
|
||||||
request.headers["X-Application"] = appName + "/" + appVersion;
|
request.headers["X-Application"] = appName + "/" + appVersion;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue