Remove unused `IPlatformLuaLibEnv` implementation

This commit is contained in:
YoshiRulz 2022-12-09 05:41:49 +10:00
parent 5197c36a5d
commit c4f4c793da
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 1 additions and 53 deletions

View File

@ -4,6 +4,7 @@ using NLua;
namespace BizHawk.Client.Common
{
/// <remarks>TODO replace with impl.</remarks>
public interface IPlatformLuaLibEnv
{
LuaDocumentation Docs { get; }

View File

@ -1,53 +0,0 @@
using System;
using BizHawk.Client.Common;
using NLua;
namespace BizHawk.Client.EmuHawk
{
/// <summary>
/// Methods intentionally blank.
/// </summary>
public sealed class UnixLuaLibraries : IPlatformLuaLibEnv
{
public LuaDocumentation Docs { get; } = new LuaDocumentation();
public string EngineName => null;
public bool IsRebootingCore { get; set; }
public bool IsUpdateSupressed { get; set; }
public LuaFunctionList RegisteredFunctions { get; }
public PathEntryCollection PathEntries { get; }
public LuaFileList ScriptList { get; }
public UnixLuaLibraries(LuaFileList scriptList, LuaFunctionList registeredFuncList, PathEntryCollection pathEntries)
{
PathEntries = pathEntries;
RegisteredFunctions = registeredFuncList;
ScriptList = scriptList;
}
public void CallLoadStateEvent(string name) {}
public void CallSaveStateEvent(string name) {}
public INamedLuaFunction CreateAndRegisterNamedFunction(
LuaFunction function,
string theEvent,
Action<string> logCallback,
LuaFile luaFile,
string name = null)
=> null;
public NLuaTableHelper GetTableHelper() => null;
public bool RemoveNamedFunctionMatching(Func<INamedLuaFunction, bool> predicate) => false;
public void SpawnAndSetFileThread(string pathToLoad, LuaFile lf) {}
}
}