mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
clean up unused code
This commit is contained in:
parent
1e3b03dde1
commit
223945bd36
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user