Browse Source

remove: simulated console read methods from UnityStandardIO

Akeit0 5 months ago
parent
commit
6ea0a15beb
1 changed files with 0 additions and 21 deletions
  1. 0 21
      src/Lua.Unity/Assets/Lua.Unity/Runtime/UnityStandardIO.cs

+ 0 - 21
src/Lua.Unity/Assets/Lua.Unity/Runtime/UnityStandardIO.cs

@@ -32,27 +32,6 @@ namespace Lua.Unity
         public bool IsOpen { get; } = true;
         public LuaFileOpenMode Mode => LuaFileOpenMode.Read;
 
-        public ValueTask<string> ReadAllAsync(CancellationToken cancellationToken)
-        {
-            // Simulate reading all input from the console
-            UnityEngine.Debug.Log("Reading all input (simulated)");
-            return new ValueTask<string>(("input"));
-        }
-
-        public ValueTask<string> ReadLineAsync(CancellationToken cancellationToken)
-        {
-            // Simulate reading a line from the console
-            UnityEngine.Debug.Log("Reading a line (simulated)");
-            return new ValueTask<string>(default(string));
-        }
-
-        public ValueTask<string> ReadStringAsync(int count, CancellationToken cancellationToken)
-        {
-            // Simulate reading a specific number of characters from the console
-            UnityEngine.Debug.Log($"Reading {count} characters (simulated)");
-            return new ValueTask<string>(default(string));
-        }
-
         public void Dispose() { }
     }