Remove dead code from EphemeralDataProtectionProvider.cs.
This commit is contained in:
parent
c3b76d14a3
commit
e2ad2f1386
|
|
@ -5,7 +5,6 @@ using System;
|
||||||
using Microsoft.AspNet.Security.DataProtection.AuthenticatedEncryption;
|
using Microsoft.AspNet.Security.DataProtection.AuthenticatedEncryption;
|
||||||
using Microsoft.AspNet.Security.DataProtection.Cng;
|
using Microsoft.AspNet.Security.DataProtection.Cng;
|
||||||
using Microsoft.AspNet.Security.DataProtection.KeyManagement;
|
using Microsoft.AspNet.Security.DataProtection.KeyManagement;
|
||||||
using Microsoft.Framework.OptionsModel;
|
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Security.DataProtection
|
namespace Microsoft.AspNet.Security.DataProtection
|
||||||
{
|
{
|
||||||
|
|
@ -45,16 +44,6 @@ namespace Microsoft.AspNet.Security.DataProtection
|
||||||
return _dataProtectionProvider.CreateProtector(purpose);
|
return _dataProtectionProvider.CreateProtector(purpose);
|
||||||
}
|
}
|
||||||
|
|
||||||
private sealed class DefaultOptionsAccessor<T> : IOptionsAccessor<T> where T : class, new()
|
|
||||||
{
|
|
||||||
public T Options { get; } = new T();
|
|
||||||
|
|
||||||
public T GetNamedOptions(string name)
|
|
||||||
{
|
|
||||||
return Options;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private sealed class EphemeralKeyRing<T> : IKeyRing, IKeyRingProvider
|
private sealed class EphemeralKeyRing<T> : IKeyRing, IKeyRingProvider
|
||||||
where T : IInternalConfigurationOptions, new()
|
where T : IInternalConfigurationOptions, new()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue