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

@@ -1,5 +1,4 @@
using MediaBrowser.Common.Extensions;
using MediaBrowser.Common.IO;
using MediaBrowser.Common.Net;
using MediaBrowser.Controller.Channels;
using MediaBrowser.Controller.Configuration;
@@ -122,7 +121,7 @@ namespace MediaBrowser.Server.Implementations.Channels
{
try
{
return (GetChannelProvider(i) is ISupportsLatestMedia) == val;
return GetChannelProvider(i) is ISupportsLatestMedia == val;
}
catch
{
@@ -403,7 +402,7 @@ namespace MediaBrowser.Server.Implementations.Channels
var val = width.Value;
var res = list
.OrderBy(i => (i.Width.HasValue && i.Width.Value <= val ? 0 : 1))
.OrderBy(i => i.Width.HasValue && i.Width.Value <= val ? 0 : 1)
.ThenBy(i => Math.Abs((i.Width ?? 0) - val))
.ThenByDescending(i => i.Width ?? 0)
.ThenBy(list.IndexOf)