mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Clean up usings
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using MPF.Data;
|
||||
using RedumpLib.Data;
|
||||
|
||||
namespace MPF.Aaru
|
||||
|
||||
@@ -6,8 +6,6 @@ using MPF.Data;
|
||||
#if NET_FRAMEWORK
|
||||
using IMAPI2;
|
||||
#endif
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using RedumpLib.Data;
|
||||
|
||||
namespace MPF.Converters
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
using System;
|
||||
using MPF.Data;
|
||||
using MPF.Utilities;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using RedumpLib.Data;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using MPF.Data;
|
||||
using RedumpLib.Data;
|
||||
|
||||
namespace MPF.DD
|
||||
|
||||
@@ -12,8 +12,6 @@ using BurnOutSharp;
|
||||
using MPF.Converters;
|
||||
using MPF.Utilities;
|
||||
using Newtonsoft.Json;
|
||||
using RedumpLib.Attributes;
|
||||
using RedumpLib.Converters;
|
||||
using RedumpLib.Data;
|
||||
using RedumpLib.Web;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using MPF.Data;
|
||||
using RedumpLib.Data;
|
||||
|
||||
namespace MPF.DiscImageCreator
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using MPF.Data;
|
||||
using OptimizedCRC;
|
||||
|
||||
namespace MPF.Hashing
|
||||
{
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using MPF.Data;
|
||||
using RedumpLib.Data;
|
||||
using RedumpLib.Data;
|
||||
|
||||
namespace MPF.Utilities
|
||||
{
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
@@ -38,15 +37,15 @@ namespace MPF.Utilities
|
||||
string line = new string(buffer, 0, read);
|
||||
|
||||
// If we have no newline characters, store in the string builder
|
||||
if (!line.Contains('\r') && !line.Contains('\n'))
|
||||
if (!line.Contains("\r") && !line.Contains("\n"))
|
||||
sb.Append(line);
|
||||
|
||||
// If we have a newline, append and log
|
||||
else if (line.Contains('\n') || line.Contains("\r\n"))
|
||||
else if (line.Contains("\n") || line.Contains("\r\n"))
|
||||
ProcessNewLines(sb, line, baseClass, handler);
|
||||
|
||||
// If we have a carriage return only, append and log first and last instances
|
||||
else if (line.Contains('\r'))
|
||||
else if (line.Contains("\r"))
|
||||
ProcessCarriageReturns(sb, line, baseClass, handler);
|
||||
}
|
||||
}
|
||||
@@ -71,7 +70,7 @@ namespace MPF.Utilities
|
||||
for (int i = 0; i < split.Length; i++)
|
||||
{
|
||||
// If the chunk contains a carriage return, handle it like a separate line
|
||||
if (split[i].Contains('\r'))
|
||||
if (split[i].Contains("\r"))
|
||||
{
|
||||
ProcessCarriageReturns(sb, split[i], baseClass, handler);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user