aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/HexHelper.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-11-07 10:50:55 +0100
committerBond-009 <bond.009@outlook.com>2019-11-07 10:50:55 +0100
commit983d38a43bd617de11724196f35822f07860a2eb (patch)
tree0eb15c7d7a5a4c270f966b6c4a8aee60f4a1a60e /MediaBrowser.Common/HexHelper.cs
parent81c135c5bb01fbfb62ce67dc091e3e9f1c6d2c10 (diff)
parent2779d9d3bc9a9fd731e118f57d4601de4a55d032 (diff)
Merge branch 'master' into installationmanager
Diffstat (limited to 'MediaBrowser.Common/HexHelper.cs')
-rw-r--r--MediaBrowser.Common/HexHelper.cs24
1 files changed, 0 insertions, 24 deletions
diff --git a/MediaBrowser.Common/HexHelper.cs b/MediaBrowser.Common/HexHelper.cs
deleted file mode 100644
index 61007b5b2..000000000
--- a/MediaBrowser.Common/HexHelper.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-#pragma warning disable CS1591
-
-using System;
-using System.Globalization;
-
-namespace MediaBrowser.Common
-{
- public static class HexHelper
- {
- public static byte[] FromHexString(string str)
- {
- byte[] bytes = new byte[str.Length / 2];
- for (int i = 0; i < str.Length; i += 2)
- {
- bytes[i / 2] = byte.Parse(str.Substring(i, 2), NumberStyles.HexNumber, CultureInfo.InvariantCulture);
- }
-
- return bytes;
- }
-
- public static string ToHexString(byte[] bytes)
- => BitConverter.ToString(bytes).Replace("-", "");
- }
-}