From 4d5fd5aed8e6972fa8ea888528c33db89233289a Mon Sep 17 00:00:00 2001 From: c3charvat Date: Tue, 25 Jun 2024 17:31:01 -0400 Subject: [PATCH] delete unused resources Signed-off-by: c3charvat --- instrument-repl/src/resources/kic_2600.tsp | 24 ------------------ instrument-repl/src/resources/kic_tti.tsp | 25 ------------------- .../src/resources/kic_versatest.tsp | 13 ---------- 3 files changed, 62 deletions(-) delete mode 100644 instrument-repl/src/resources/kic_2600.tsp delete mode 100644 instrument-repl/src/resources/kic_tti.tsp delete mode 100644 instrument-repl/src/resources/kic_versatest.tsp diff --git a/instrument-repl/src/resources/kic_2600.tsp b/instrument-repl/src/resources/kic_2600.tsp deleted file mode 100644 index 679eebb..0000000 --- a/instrument-repl/src/resources/kic_2600.tsp +++ /dev/null @@ -1,24 +0,0 @@ -if not _KIC then _KIC = {} end -_KIC = { - version = "!!>!", - error_message = function() - local errorstr = [[ERM>START]].."\n" - for _err_num = 1, errorqueue.count do - local error_code, message, severity, node_id = errorqueue.next() - if _err_num > 1 then errorstr = errorstr .."," end - errorstr = errorstr.. "ERM>" .._KIC.toJson({error_code=error_code, message=message, severity=severity, node_id=node_id, time=nil}) .. "\n" - end - errorstr = errorstr..[[ERM>DONE]] - end, - prompts_enable = function(enable) - _G[".orig_prompts"] = localnode.prompts - if(enable) then - localnode.prompts = 0 - else - localnode.prompts = 1 - end - end, - prompts_restore = function() - localnode.prompts = _G[".orig_prompts"] - end -} diff --git a/instrument-repl/src/resources/kic_tti.tsp b/instrument-repl/src/resources/kic_tti.tsp deleted file mode 100644 index 2aaafb0..0000000 --- a/instrument-repl/src/resources/kic_tti.tsp +++ /dev/null @@ -1,25 +0,0 @@ -if not _KIC then _KIC = {} end - -_KIC["version"] = "!!>!" -_KIC["error_message"] = function() - local errorstr = [[ERM>START]].. '\n' - for _err_num = 1, eventlog.getcount(eventlog.SEV_ERROR) do - local event_id, message, severity, node_id, secs, nanos = eventlog.next(eventlog.SEV_ERROR) - if _err_num > 1 then errorstr = errorstr .. "," end - errorstr = errorstr .. [[ERM>]] .. _KIC.toJson({ error_code = event_id, message = message, severity = severity, node_id = node_id, - time = { secs = secs, nanos = nanos } }).."\n" - end - errorstr = errorstr .. [[ERM>DONE]] - return errorstr -end -_KIC["prompts_enable"] = function(enable) - _G[".orig_prompts"] = localnode.prompts - if (enable) then - localnode.prompts = localnode.ENABLE - else - localnode.prompts = localnode.DISABLE - end -end -_KIC["prompts_restore"] = function() - localnode.prompts = _G[".orig_prompts"] -end diff --git a/instrument-repl/src/resources/kic_versatest.tsp b/instrument-repl/src/resources/kic_versatest.tsp deleted file mode 100644 index 1a3ba50..0000000 --- a/instrument-repl/src/resources/kic_versatest.tsp +++ /dev/null @@ -1,13 +0,0 @@ -if not _KIC then _KIC = {} end -_KIC = { - version = "!!>!", - error_message = function() - local errorstr = [[ERM>START]].."\n[" - for _err_num = 1, errorqueue.count do - local error_code, message, severity, node_id = errorqueue.next() - if _err_num > 1 then errorstr = errorstr .."," end - errorstr = errorstr.._KIC.toJson({error_code=error_code, message=message, severity=severity, node_id=node_id, time=nil}) - end - errorstr = errorstr.."\n]\n"..[[ERM>DONE]] - end -}