فهرست منبع

Remove unused Cookies

Claus Vium 6 سال پیش
والد
کامیت
5510e8ebee
2فایلهای تغییر یافته به همراه0 افزوده شده و 21 حذف شده
  1. 0 19
      Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs
  2. 0 2
      MediaBrowser.Model/Services/IRequest.cs

+ 0 - 19
Emby.Server.Implementations/SocketSharp/WebSocketSharpRequest.cs

@@ -412,25 +412,6 @@ namespace Emby.Server.Implementations.SocketSharp
             return path.Length > 1 ? path.TrimEnd('/') : "/";
         }
 
-        private Dictionary<string, System.Net.Cookie> cookies;
-        public IDictionary<string, System.Net.Cookie> Cookies
-        {
-            get
-            {
-                if (cookies == null)
-                {
-                    cookies = new Dictionary<string, System.Net.Cookie>();
-                    foreach (var cookie in this.request.Cookies)
-                    {
-                        var httpCookie = cookie;
-                        cookies[httpCookie.Key] = new Cookie(httpCookie.Key, httpCookie.Value, "", "");
-                    }
-                }
-
-                return cookies;
-            }
-        }
-
         public string UserAgent => request.Headers[HeaderNames.UserAgent];
 
         public QueryParamCollection Headers => new QueryParamCollection(request.Headers);

+ 0 - 2
MediaBrowser.Model/Services/IRequest.cs

@@ -41,8 +41,6 @@ namespace MediaBrowser.Model.Services
 
         string UserAgent { get; }
 
-        IDictionary<string, Cookie> Cookies { get; }
-
         /// <summary>
         /// The expected Response ContentType for this request
         /// </summary>