REFACTOR: Remove unneeded code.

This commit is contained in:
2017-12-21 14:30:38 +00:00
parent 99abd6638d
commit 76b26bd3a7
3 changed files with 4 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ namespace DiscImageChef
public static void ArrayFill<T>(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>(T[] destinationArray, T[] value)

View File

@@ -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;

View File

@@ -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;