From 02a8e7fc9369d7882db08a69d108beefb0f98677 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 17 Oct 2018 14:55:10 -0300 Subject: Remove unnecessary usings (#463) * Remove unnecessary usings * Fix CastExpression while I'm at it --- .../Diagnostics/Demangler/Ast/CallExpression.cs | 1 - .../HOS/Diagnostics/Demangler/Ast/CasExpression.cs | 30 ---------------------- .../Diagnostics/Demangler/Ast/CastExpression.cs | 28 ++++++++++++++++++++ .../Demangler/Ast/InitListExpression.cs | 1 - .../HOS/Diagnostics/Demangler/Ast/NodeArray.cs | 1 - .../Diagnostics/Demangler/Ast/TemplateArguments.cs | 1 - 6 files changed, 28 insertions(+), 34 deletions(-) delete mode 100644 Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CasExpression.cs create mode 100644 Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CastExpression.cs (limited to 'Ryujinx.HLE/HOS/Diagnostics') diff --git a/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CallExpression.cs b/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CallExpression.cs index 7e59ab09..ae43fcdb 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/CasExpression.cs deleted file mode 100644 index 2415c6c0..00000000 --- a/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CasExpression.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.IO; - - -namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast -{ - public class CastExpression : BaseNode - { - private string Kind; - private BaseNode To; - private BaseNode From; - - public CastExpression(string Kind, BaseNode To, BaseNode From) : base(NodeType.CastExpression) - { - this.Kind = Kind; - this.To = To; - this.From = From; - } - - public override void PrintLeft(TextWriter Writer) - { - Writer.Write(Kind); - Writer.Write("<"); - To.PrintLeft(Writer); - Writer.Write(">("); - From.PrintLeft(Writer); - Writer.Write(")"); - } - } -} \ No newline at end of file diff --git a/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CastExpression.cs b/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CastExpression.cs new file mode 100644 index 00000000..c02e9e65 --- /dev/null +++ b/Ryujinx.HLE/HOS/Diagnostics/Demangler/Ast/CastExpression.cs @@ -0,0 +1,28 @@ +using System.IO; + +namespace Ryujinx.HLE.HOS.Diagnostics.Demangler.Ast +{ + public class CastExpression : BaseNode + { + private string Kind; + private BaseNode To; + private BaseNode From; + + public CastExpression(string Kind, BaseNode To, BaseNode From) : base(NodeType.CastExpression) + { + this.Kind = Kind; + this.To = To; + this.From = From; + } + + public override void PrintLeft(TextWriter Writer) + { + Writer.Write(Kind); + Writer.Write("<"); + To.PrintLeft(Writer); + Writer.Write(">("); + From.PrintLeft(Writer); + 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 cd534590..2ed4daa4 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 9720a8e4..f7bfa194 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 4de66e00..d6efbd0f 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; -- cgit v1.2.3