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