Browse Source

Remove: LuaThread.Close

AnnulusGames 1 year ago
parent
commit
310cdbce8e
1 changed files with 0 additions and 16 deletions
  1. 0 16
      src/Lua/LuaThread.cs

+ 0 - 16
src/Lua/LuaThread.cs

@@ -140,20 +140,4 @@ RETRY:
 
         yield = new();
     }
-
-    public Task<int> Close(LuaFunctionExecutionContext context, Memory<LuaValue> buffer, CancellationToken cancellationToken = default)
-    {
-        if (status is LuaThreadStatus.Normal or LuaThreadStatus.Running)
-        {
-            throw new Exception(); // TODO:
-        }
-
-        threadState.CloseUpValues(0);
-        yield.TrySetCanceled();
-
-        status = LuaThreadStatus.Dead;
-
-        buffer.Span[0] = true;
-        return Task.FromResult(1);
-    }
 }