From 02a8e7fc9369d7882db08a69d108beefb0f98677 Mon Sep 17 00:00:00 2001 From: gdkchan <gab.dark.100@gmail.com> Date: Wed, 17 Oct 2018 14:55:10 -0300 Subject: [PATCH] Remove unnecessary usings (#463) * Remove unnecessary usings * Fix CastExpression while I'm at it --- Ryujinx.HLE/FileSystem/SaveHelper.cs | 1 - Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CallExpression.cs | 1 - .../Demangler/Ast/{CasExpression.cs => CastExpression.cs} | 4 +--- .../HOS/Diagnostics/Demangler/Ast/InitListExpression.cs | 1 - Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/NodeArray.cs | 1 - .../HOS/Diagnostics/Demangler/Ast/TemplateArguments.cs | 1 - Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs | 1 - Ryujinx.HLE/HOS/Services/Irs/IIrSensorServer.cs | 2 -- Ryujinx.HLE/HOS/Services/Mm/IRequest.cs | 1 - Ryujinx.HLE/Utilities/UInt128.cs | 1 - Ryujinx.Tests.Unicorn/MemoryPermission.cs | 2 -- Ryujinx.Tests.Unicorn/Native/ArmRegister.cs | 2 -- Ryujinx.Tests.Unicorn/Native/Interface.cs | 1 - Ryujinx.Tests.Unicorn/Native/UnicornArch.cs | 2 -- Ryujinx.Tests.Unicorn/Native/UnicornMode.cs | 2 -- Ryujinx.Tests.Unicorn/UnicornAArch64.cs | 1 - Ryujinx.Tests.Unicorn/UnicornError.cs | 2 -- Ryujinx.Tests/Cpu/CpuTestSimdArithmetic.cs | 1 - 18 files changed, 1 insertion(+), 26 deletions(-) rename Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/{CasExpression.cs => CastExpression.cs} (92%) diff --git a/Ryujinx.HLE/FileSystem/SaveHelper.cs b/Ryujinx.HLE/FileSystem/SaveHelper.cs index 087156d2a..b74d853c7 100644 --- a/Ryujinx.HLE/FileSystem/SaveHelper.cs +++ b/Ryujinx.HLE/FileSystem/SaveHelper.cs @@ -1,6 +1,5 @@ using Ryujinx.HLE.HOS; using System.IO; -using System.Linq; using static Ryujinx.HLE.FileSystem.VirtualFileSystem; diff --git a/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CallExpression.cs b/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CallExpression.cs index 7e59ab09d..ae43fcdb2 100644 --- a/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CallExpression.cs +++ b/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CallExpression.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.IO; diff --git a/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CasExpression.cs b/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CastExpression.cs similarity index 92% rename from Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CasExpression.cs rename to Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CastExpression.cs index 2415c6c00..c02e9e655 100644 --- a/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CasExpression.cs +++ b/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CastExpression.cs @@ -1,7 +1,5 @@ -using System; using System.IO; - namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast { public class CastExpression : BaseNode @@ -24,7 +22,7 @@ namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast To.PrintLeft(Writer); Writer.Write(">("); From.PrintLeft(Writer); - Writer.Write(")"); + Writer.Write(")"); } } } \ No newline at end of file diff --git a/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/InitListExpression.cs b/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/InitListExpression.cs index cd534590b..2ed4daa46 100644 --- a/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/InitListExpression.cs +++ b/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/InitListExpression.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.IO; diff --git a/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/NodeArray.cs b/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/NodeArray.cs index 9720a8e49..f7bfa194f 100644 --- a/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/NodeArray.cs +++ b/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/NodeArray.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.IO; diff --git a/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/TemplateArguments.cs b/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/TemplateArguments.cs index 4de66e000..d6efbd0fc 100644 --- a/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/TemplateArguments.cs +++ b/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/TemplateArguments.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.IO; diff --git a/Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs b/Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs index 49bbbd5a8..48a449ccc 100644 --- a/Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs +++ b/Ryujinx.HLE/HOS/Services/Aud/IAudioRendererManager.cs @@ -3,7 +3,6 @@ using Ryujinx.Common.Logging; using Ryujinx.HLE.HOS.Ipc; using Ryujinx.HLE.HOS.Services.Aud.AudioRenderer; using Ryujinx.HLE.Utilities; -using System; using System.Collections.Generic; using static Ryujinx.HLE.HOS.ErrorCode; diff --git a/Ryujinx.HLE/HOS/Services/Irs/IIrSensorServer.cs b/Ryujinx.HLE/HOS/Services/Irs/IIrSensorServer.cs index 254fdae42..155faea3e 100644 --- a/Ryujinx.HLE/HOS/Services/Irs/IIrSensorServer.cs +++ b/Ryujinx.HLE/HOS/Services/Irs/IIrSensorServer.cs @@ -1,7 +1,5 @@ using Ryujinx.Common.Logging; using Ryujinx.HLE.HOS.Ipc; -using Ryujinx.HLE.HOS.Kernel; -using System; using System.Collections.Generic; namespace Ryujinx.HLE.HOS.Services.Irs diff --git a/Ryujinx.HLE/HOS/Services/Mm/IRequest.cs b/Ryujinx.HLE/HOS/Services/Mm/IRequest.cs index be2aa4e44..88cd57cff 100644 --- a/Ryujinx.HLE/HOS/Services/Mm/IRequest.cs +++ b/Ryujinx.HLE/HOS/Services/Mm/IRequest.cs @@ -1,6 +1,5 @@ using Ryujinx.Common.Logging; using Ryujinx.HLE.HOS.Ipc; -using System; using System.Collections.Generic; namespace Ryujinx.HLE.HOS.Services.Mm diff --git a/Ryujinx.HLE/Utilities/UInt128.cs b/Ryujinx.HLE/Utilities/UInt128.cs index 95b3d624d..14e04e4a6 100644 --- a/Ryujinx.HLE/Utilities/UInt128.cs +++ b/Ryujinx.HLE/Utilities/UInt128.cs @@ -1,4 +1,3 @@ -using Ryujinx.HLE.Utilities; using System; using System.IO; using System.Linq; diff --git a/Ryujinx.Tests.Unicorn/MemoryPermission.cs b/Ryujinx.Tests.Unicorn/MemoryPermission.cs index d79b2adda..a14c4e9cf 100644 --- a/Ryujinx.Tests.Unicorn/MemoryPermission.cs +++ b/Ryujinx.Tests.Unicorn/MemoryPermission.cs @@ -1,5 +1,3 @@ -using System; - namespace Ryujinx.Tests.Unicorn { public enum MemoryPermission diff --git a/Ryujinx.Tests.Unicorn/Native/ArmRegister.cs b/Ryujinx.Tests.Unicorn/Native/ArmRegister.cs index 3554480c1..cf110598e 100644 --- a/Ryujinx.Tests.Unicorn/Native/ArmRegister.cs +++ b/Ryujinx.Tests.Unicorn/Native/ArmRegister.cs @@ -1,5 +1,3 @@ -using System; - namespace Ryujinx.Tests.Unicorn.Native { public enum ArmRegister diff --git a/Ryujinx.Tests.Unicorn/Native/Interface.cs b/Ryujinx.Tests.Unicorn/Native/Interface.cs index a6563220f..b2786d143 100644 --- a/Ryujinx.Tests.Unicorn/Native/Interface.cs +++ b/Ryujinx.Tests.Unicorn/Native/Interface.cs @@ -1,6 +1,5 @@ using System; using System.Runtime.InteropServices; -using Ryujinx.Tests.Unicorn; namespace Ryujinx.Tests.Unicorn.Native { diff --git a/Ryujinx.Tests.Unicorn/Native/UnicornArch.cs b/Ryujinx.Tests.Unicorn/Native/UnicornArch.cs index be088366d..73710faa8 100644 --- a/Ryujinx.Tests.Unicorn/Native/UnicornArch.cs +++ b/Ryujinx.Tests.Unicorn/Native/UnicornArch.cs @@ -1,5 +1,3 @@ -using System; - namespace Ryujinx.Tests.Unicorn.Native { public enum UnicornArch diff --git a/Ryujinx.Tests.Unicorn/Native/UnicornMode.cs b/Ryujinx.Tests.Unicorn/Native/UnicornMode.cs index 950583bdc..a5040518d 100644 --- a/Ryujinx.Tests.Unicorn/Native/UnicornMode.cs +++ b/Ryujinx.Tests.Unicorn/Native/UnicornMode.cs @@ -1,5 +1,3 @@ -using System; - namespace Ryujinx.Tests.Unicorn.Native { public enum UnicornMode diff --git a/Ryujinx.Tests.Unicorn/UnicornAArch64.cs b/Ryujinx.Tests.Unicorn/UnicornAArch64.cs index 1cd3671fe..8ee4e76db 100644 --- a/Ryujinx.Tests.Unicorn/UnicornAArch64.cs +++ b/Ryujinx.Tests.Unicorn/UnicornAArch64.cs @@ -1,6 +1,5 @@ using System; using System.Diagnostics.Contracts; -using System.Runtime.InteropServices; using System.Runtime.Intrinsics; using System.Runtime.Intrinsics.X86; diff --git a/Ryujinx.Tests.Unicorn/UnicornError.cs b/Ryujinx.Tests.Unicorn/UnicornError.cs index db56c615d..85833ea00 100644 --- a/Ryujinx.Tests.Unicorn/UnicornError.cs +++ b/Ryujinx.Tests.Unicorn/UnicornError.cs @@ -1,5 +1,3 @@ -using System; - namespace Ryujinx.Tests.Unicorn { public enum UnicornError diff --git a/Ryujinx.Tests/Cpu/CpuTestSimdArithmetic.cs b/Ryujinx.Tests/Cpu/CpuTestSimdArithmetic.cs index 5afeab315..08e2894ca 100644 --- a/Ryujinx.Tests/Cpu/CpuTestSimdArithmetic.cs +++ b/Ryujinx.Tests/Cpu/CpuTestSimdArithmetic.cs @@ -3,7 +3,6 @@ using ChocolArm64.State; using NUnit.Framework; using System.Runtime.Intrinsics; -using System.Runtime.Intrinsics.X86; namespace Ryujinx.Tests.Cpu {