Browse Source

Fix: remove unnecessary codes

Akeit0 11 months ago
parent
commit
d3e452fb4d
1 changed files with 0 additions and 15 deletions
  1. 0 15
      src/Lua/Runtime/LuaVirtualMachine.cs

+ 0 - 15
src/Lua/Runtime/LuaVirtualMachine.cs

@@ -368,7 +368,6 @@ public static partial class LuaVirtualMachine
                         if (TrySetMetaTableValueWithSync(table, vb, vc, ref context, out doRestart))
                         {
                             if (doRestart) goto Restart;
-
                             continue;
                         }
 
@@ -434,20 +433,6 @@ public static partial class LuaVirtualMachine
                             stack.NotifyTop(iA + frameBase + 2);
                             continue;
                         }
-                        // if (table.TryReadTable(out luaTable) && luaTable.TryGetValue(vc, out resultValue))
-                        // {
-                        //     Unsafe.Add(ref stackHead, iA) = resultValue;
-                        //     Unsafe.Add(ref stackHead, iA + 1) = table;
-                        //     stack.NotifyTop(iA + frameBase + 2);
-                        //     continue;
-                        // }
-                        //
-                        //
-                        // if (TryGetMetaTableValue(table, vc, ref context, out doRestart))
-                        // {
-                        //     if (doRestart) goto Restart;
-                        //     continue;
-                        // }
 
                         postOperation = PostOperationType.Self;
                         return true;