From 36eb495ea72a508c3b2520c47b7aa58e333f7d10 Mon Sep 17 00:00:00 2001 From: ikpil Date: Thu, 8 Jun 2023 00:04:49 +0900 Subject: [PATCH] remove ConsoleTextWriterHook --- .../Tools/ConsoleTextWriterHook.cs | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 src/DotRecast.Recast.Demo/Tools/ConsoleTextWriterHook.cs diff --git a/src/DotRecast.Recast.Demo/Tools/ConsoleTextWriterHook.cs b/src/DotRecast.Recast.Demo/Tools/ConsoleTextWriterHook.cs deleted file mode 100644 index 14563c8..0000000 --- a/src/DotRecast.Recast.Demo/Tools/ConsoleTextWriterHook.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.IO; -using System.Text; - -namespace DotRecast.Recast.Demo.Tools; - -public class ConsoleTextWriterHook : TextWriter -{ - public override Encoding Encoding => Encoding.UTF8; - private readonly Action _event; - - public ConsoleTextWriterHook(Action relay) - { - _event = relay; - } - - public override void Write(char[] buffer, int index, int count) - { - var s = new string(new Span(buffer, index, count)); - _event?.Invoke(s); - } -} \ No newline at end of file