From b2b736abc2569ab5d8199da666aef8d8394844a0 Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Mon, 1 Jul 2019 21:39:22 -0500 Subject: Misc cleanup (#708) * Fix typos * Remove unneeded using statements * Enforce var style more * Remove redundant qualifiers * Fix some indentation * Disable naming warnings on files with external enum names * Fix build * Mass find & replace for comments with no spacing * Standardize todo capitalization and for/if spacing --- ChocolArm64/Translation/TranslatedSub.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ChocolArm64/Translation/TranslatedSub.cs') diff --git a/ChocolArm64/Translation/TranslatedSub.cs b/ChocolArm64/Translation/TranslatedSub.cs index 704e3b47..cf42e202 100644 --- a/ChocolArm64/Translation/TranslatedSub.cs +++ b/ChocolArm64/Translation/TranslatedSub.cs @@ -10,9 +10,9 @@ namespace ChocolArm64.Translation class TranslatedSub { - //This is the minimum amount of calls needed for the method - //to be retranslated with higher quality code. It's only worth - //doing that for hot code. + // This is the minimum amount of calls needed for the method + // to be retranslated with higher quality code. It's only worth + // doing that for hot code. private const int MinCallCountForOpt = 30; public ArmSubroutine Delegate { get; private set; } @@ -32,7 +32,7 @@ namespace ChocolArm64.Translation public TranslatedSub(DynamicMethod method, TranslationTier tier, bool rejit) { - Method = method ?? throw new ArgumentNullException(nameof(method));; + Method = method ?? throw new ArgumentNullException(nameof(method)); Tier = tier; _rejit = rejit; } @@ -74,7 +74,7 @@ namespace ChocolArm64.Translation public bool Rejit() { - if (!_rejit) + if (!_rejit) { return false; } @@ -84,7 +84,7 @@ namespace ChocolArm64.Translation return false; } - //Only return true once, so that it is added to the queue only once. + // Only return true once, so that it is added to the queue only once. _rejit = false; return true; -- cgit v1.2.3