mirror of
https://github.com/Stone-Red-Code/YesNt-Interpreter.git
synced 2026-09-04 00:56:31 +02:00
Code cleanup
This commit is contained in:
@@ -170,11 +170,9 @@ internal class AsyncStreamReader : IDisposable
|
||||
byteBuffer = null;
|
||||
charBuffer = null;
|
||||
}
|
||||
if (eofEvent != null)
|
||||
{
|
||||
eofEvent.Close();
|
||||
eofEvent = null;
|
||||
}
|
||||
|
||||
eofEvent?.Close();
|
||||
eofEvent = null;
|
||||
}
|
||||
|
||||
private void Init(Stream stream, UserCallBack callback, Encoding encoding, int bufferSize)
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -30,7 +29,6 @@ public static class StringExtensions
|
||||
{"", "~emp" },
|
||||
};
|
||||
|
||||
[SuppressMessage("Minor Code Smell", "S3963:\"static\" fields should be initialized inline", Justification = "Doesn't work because it throws a TypeInitializationException")]
|
||||
static StringExtensions()
|
||||
{
|
||||
reverseReplacementRules = ReplacementRules.ToDictionary(x => x.Value, x => x.Key);
|
||||
|
||||
Reference in New Issue
Block a user