From 76b26bd3a776c52adfa4035504ee39677f1d44dc Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Thu, 21 Dec 2017 14:30:38 +0000 Subject: [PATCH] REFACTOR: Remove unneeded code. --- ArrayFill.cs | 2 +- PrintHex.cs | 3 ++- StringHandlers.cs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ArrayFill.cs b/ArrayFill.cs index e443f7bf9..e4a1a4d97 100644 --- a/ArrayFill.cs +++ b/ArrayFill.cs @@ -34,7 +34,7 @@ namespace DiscImageChef public static void ArrayFill(T[] destinationArray, T value) { // if called with a single value, wrap the value in an array and call the main function - ArrayFill(destinationArray, new T[] {value}); + ArrayFill(destinationArray, new[] {value}); } public static void ArrayFill(T[] destinationArray, T[] value) diff --git a/PrintHex.cs b/PrintHex.cs index e5e8046a7..291b30154 100644 --- a/PrintHex.cs +++ b/PrintHex.cs @@ -30,6 +30,7 @@ // Copyright © 2011-2018 Natalia Portillo // ****************************************************************************/ +using System.Text; using DiscImageChef.Console; namespace DiscImageChef @@ -43,7 +44,7 @@ namespace DiscImageChef public static string ByteArrayToHexArrayString(byte[] array, int width) { - System.Text.StringBuilder sb = new System.Text.StringBuilder(); + StringBuilder sb = new StringBuilder(); int counter = 0; int subcounter = 0; diff --git a/StringHandlers.cs b/StringHandlers.cs index 728715e05..7f93ad326 100644 --- a/StringHandlers.cs +++ b/StringHandlers.cs @@ -176,7 +176,7 @@ namespace DiscImageChef if(unicode == 0) break; - temp += Encoding.Unicode.GetString(System.BitConverter.GetBytes(unicode)); + temp += Encoding.Unicode.GetString(BitConverter.GetBytes(unicode)); } return temp;