aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Cryptography/CryptographyProvider.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-03-25 22:25:32 +0100
committerBond-009 <bond.009@outlook.com>2019-03-25 22:25:32 +0100
commitb44a70ff368f228fc27a184e2139d288bada85cc (patch)
tree3612f517f0666761bc3f5765217e8fa4d8f64663 /Emby.Server.Implementations/Cryptography/CryptographyProvider.cs
parent5024c52c60617fffc09ee7b6eeabe0ac400bae75 (diff)
Simplify/remove/clean code
* Remove useless runtime check (we only support one) * Remove unused args * Remove a global constant And ofc fix some warnings ;)
Diffstat (limited to 'Emby.Server.Implementations/Cryptography/CryptographyProvider.cs')
-rw-r--r--Emby.Server.Implementations/Cryptography/CryptographyProvider.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Cryptography/CryptographyProvider.cs b/Emby.Server.Implementations/Cryptography/CryptographyProvider.cs
index 982bba625..6d7193ce2 100644
--- a/Emby.Server.Implementations/Cryptography/CryptographyProvider.cs
+++ b/Emby.Server.Implementations/Cryptography/CryptographyProvider.cs
@@ -4,7 +4,6 @@ using System.Globalization;
using System.IO;
using System.Security.Cryptography;
using System.Text;
-using System.Linq;
using MediaBrowser.Model.Cryptography;
namespace Emby.Server.Implementations.Cryptography
@@ -136,7 +135,7 @@ namespace Emby.Server.Implementations.Cryptography
{
return PBKDF2(DefaultHashMethod, bytes, salt, _defaultIterations);
}
-
+
public byte[] ComputeHash(PasswordHash hash)
{
int iterations = _defaultIterations;