diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2022-02-06 15:02:10 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2022-02-06 15:02:10 -0600 |
| commit | 9a3358c52c9f31c15c9675d94e4ff2057b6c8e22 (patch) | |
| tree | 424c06da4bfd08af130baf033a728cab41df97ce /src/slskd/Common/Extensions.cs | |
| parent | 3e9bac23fa3c3ba6dbcd28c6dddd1bc7cf8d6a17 (diff) | |
| download | slskd-9a3358c52c9f31c15c9675d94e4ff2057b6c8e22.tar.gz | |
remove redundant sha1 method
Diffstat (limited to 'src/slskd/Common/Extensions.cs')
| -rw-r--r-- | src/slskd/Common/Extensions.cs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/slskd/Common/Extensions.cs b/src/slskd/Common/Extensions.cs index 736d8863..8b1ead8c 100644 --- a/src/slskd/Common/Extensions.cs +++ b/src/slskd/Common/Extensions.cs @@ -327,17 +327,6 @@ namespace slskd } /// <summary> - /// Returns the SHA1 hash of the input string. - /// </summary> - /// <param name="str">The string to hash.</param> - /// <returns>The computed SHA1 hash.</returns> - public static string ToSHA1(this string str) - { - using var sha = SHA1.Create(); - return BitConverter.ToString(sha.ComputeHash(Encoding.UTF8.GetBytes(str))).Replace("-", string.Empty); - } - - /// <summary> /// Redacts this instance of Options, replacing properties marked with <see cref="SecretAttribute"/> with '*****'. /// </summary> /// <remarks> |
