mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 06:53:07 +03:00
Remove unused code...
This commit is contained in:
@@ -26,7 +26,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.SocketSharp
|
||||
|
||||
int end = header.IndexOf(ending, ap + 1);
|
||||
if (end == -1)
|
||||
return (ending == '"') ? null : header.Substring(ap);
|
||||
return ending == '"' ? null : header.Substring(ap);
|
||||
|
||||
return header.Substring(ap + 1, end - ap - 1);
|
||||
}
|
||||
@@ -529,7 +529,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.SocketSharp
|
||||
{
|
||||
get
|
||||
{
|
||||
return (content_type);
|
||||
return content_type;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -545,7 +545,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.SocketSharp
|
||||
{
|
||||
get
|
||||
{
|
||||
return (name);
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -553,7 +553,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.SocketSharp
|
||||
{
|
||||
get
|
||||
{
|
||||
return (stream);
|
||||
return stream;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -582,7 +582,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.SocketSharp
|
||||
if (l2 > l1)
|
||||
return false;
|
||||
|
||||
return (0 == String.Compare(str1, 0, str2, 0, l2, ignore_case, Helpers.InvariantCulture));
|
||||
return 0 == String.Compare(str1, 0, str2, 0, l2, ignore_case, Helpers.InvariantCulture);
|
||||
}
|
||||
|
||||
public static bool EndsWith(string str1, string str2)
|
||||
@@ -600,7 +600,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.SocketSharp
|
||||
if (l2 > l1)
|
||||
return false;
|
||||
|
||||
return (0 == String.Compare(str1, l1 - l2, str2, 0, l2, ignore_case, Helpers.InvariantCulture));
|
||||
return 0 == String.Compare(str1, l1 - l2, str2, 0, l2, ignore_case, Helpers.InvariantCulture);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -676,7 +676,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.SocketSharp
|
||||
{
|
||||
break;
|
||||
}
|
||||
got_cr = (b == CR);
|
||||
got_cr = b == CR;
|
||||
sb.Append((char)b);
|
||||
}
|
||||
|
||||
@@ -781,7 +781,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.SocketSharp
|
||||
}
|
||||
else if (state == 0)
|
||||
{
|
||||
got_cr = (c == CR);
|
||||
got_cr = c == CR;
|
||||
c = data.ReadByte();
|
||||
}
|
||||
else if (state == 1 && c == '-')
|
||||
|
||||
Reference in New Issue
Block a user