1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-02 16:43:28 +00:00

Removed dead code

This commit is contained in:
Bryan Roe
2021-05-20 11:41:19 -07:00
parent 486f8eaa39
commit 1c918a115c

View File

@@ -109,7 +109,6 @@ int ILibDuktape_HECI_Debug = 0;
#endif
#endif
extern int gEventEmitterReferenceHold;
extern int ILibDuktape_ModSearch_ShowNames;
char* MeshAgentHost_BatteryInfo_STRINGS[] = { "UNKNOWN", "HIGH_CHARGE", "LOW_CHARGE", "NO_BATTERY", "CRITICAL_CHARGE", "", "", "", "CHARGING" };
JS_ENGINE_CONTEXT MeshAgent_JavaCore_ContextGuid = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 };
@@ -5113,10 +5112,6 @@ int MeshAgent_AgentMode(MeshAgentHostContainer *agentHost, int paramLen, char **
{
duk_eval_string_noresult(agentHost->meshCoreCtx, "process.coreDumpLocation = process.platform=='win32'?(process.execPath.replace('.exe', '.dmp')):(process.execPath + '.dmp');");
}
if (ILibSimpleDataStore_Get(agentHost->masterDb, "eventemitter-refhold", ILibScratchPad, sizeof(ILibScratchPad)) != 0)
{
gEventEmitterReferenceHold = atoi(ILibScratchPad);
}
if (ILibSimpleDataStore_Get(agentHost->masterDb, "finalizer-messages", ILibScratchPad, sizeof(ILibScratchPad)) != 0)
{
g_displayFinalizerMessages = atoi(ILibScratchPad);
@@ -5543,14 +5538,6 @@ void MeshAgent_ScriptMode(MeshAgentHostContainer *agentHost, int argc, char **ar
agentHost->masterDb = ILibSimpleDataStore_Create(MeshAgent_MakeAbsolutePath(agentHost->exePath, ".db"));
}
}
else if (strncmp(argv[i], "--eventemitter-refhold=", 23) == 0)
{
char *tmp = strstr(argv[i], "=");
if (tmp != NULL)
{
gEventEmitterReferenceHold = atoi(tmp + 1);
}
}
else
{
// Unhandled arguments, passed to JavaScript