Remove unused code...

This commit is contained in:
Sven Van den brande
2016-03-27 23:11:27 +02:00
parent e73b418f9d
commit 168587b2a0
431 changed files with 282 additions and 977 deletions

View File

@@ -44,7 +44,7 @@ namespace MediaBrowser.Server.Implementations.Channels
var startingPercent = numComplete * percentPerUser * 100;
var innerProgress = new ActionableProgress<double>();
innerProgress.RegisterAction(p => progress.Report(startingPercent + (percentPerUser * p)));
innerProgress.RegisterAction(p => progress.Report(startingPercent + percentPerUser * p));
await DownloadContent(user, cancellationToken, innerProgress).ConfigureAwait(false);
@@ -97,7 +97,7 @@ namespace MediaBrowser.Server.Implementations.Channels
innerProgress.RegisterAction(p =>
{
double innerPercent = startingNumberComplete;
innerPercent += (p / 100);
innerPercent += p / 100;
innerPercent /= numItems;
progress.Report(innerPercent * 100);
});
@@ -232,9 +232,9 @@ namespace MediaBrowser.Server.Implementations.Channels
innerProgress.RegisterAction(p =>
{
double innerPercent = startingNumberComplete;
innerPercent += (p / 100);
innerPercent += p / 100;
innerPercent /= numItems;
progress.Report((innerPercent * 50) + 50);
progress.Report(innerPercent * 50 + 50);
});
await GetAllItems(user, channelId, folder, currentRefreshLevel + 1, maxRefreshLevel, innerProgress, cancellationToken).ConfigureAwait(false);
@@ -247,7 +247,7 @@ namespace MediaBrowser.Server.Implementations.Channels
numComplete++;
double percent = numComplete;
percent /= numItems;
progress.Report((percent * 50) + 50);
progress.Report(percent * 50 + 50);
}
}