aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/DisplayPreferencesService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-10 11:32:09 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-04-10 11:32:09 -0400
commit70da0b6ae96bffbc39efab14d95b2c14426753b7 (patch)
tree46a95dc16effb256e9969d17c0964b448bd21b95 /MediaBrowser.Api/DisplayPreferencesService.cs
parentc645b3ff648e793d90bfb40bb552aa636967b9b8 (diff)
resharper suggestions in api project
Diffstat (limited to 'MediaBrowser.Api/DisplayPreferencesService.cs')
-rw-r--r--MediaBrowser.Api/DisplayPreferencesService.cs6
1 files changed, 0 insertions, 6 deletions
diff --git a/MediaBrowser.Api/DisplayPreferencesService.cs b/MediaBrowser.Api/DisplayPreferencesService.cs
index 8372ecd36..634e79de8 100644
--- a/MediaBrowser.Api/DisplayPreferencesService.cs
+++ b/MediaBrowser.Api/DisplayPreferencesService.cs
@@ -2,7 +2,6 @@
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Serialization;
using ServiceStack.ServiceHost;
-using ServiceStack.Text.Controller;
using System;
using System.Threading;
using System.Threading.Tasks;
@@ -78,11 +77,6 @@ namespace MediaBrowser.Api
/// <param name="request">The request.</param>
public void Post(UpdateDisplayPreferences request)
{
- // We need to parse this manually because we told service stack not to with IRequiresRequestStream
- // https://code.google.com/p/servicestack/source/browse/trunk/Common/ServiceStack.Text/ServiceStack.Text/Controller/PathInfo.cs
- var pathInfo = PathInfo.Parse(RequestContext.PathInfo);
- var displayPreferencesId = new Guid(pathInfo.GetArgumentValue<string>(1));
-
// Serialize to json and then back so that the core doesn't see the request dto type
var displayPreferences = _jsonSerializer.DeserializeFromString<DisplayPreferences>(_jsonSerializer.SerializeToString(request));