summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-03-28 12:11:34 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-03-28 12:11:34 -0400
commit53ce38b106a086a4e3bc1ed0663bb47b0f0d967c (patch)
treefa50e02d11aa8320ae86799b66e20aa157a45f9a /indra
parentba74839cd19c3b17757345ba81b1aa97c57f43d4 (diff)
Remove rest of prototype UI access.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llluamanager.cpp32
1 files changed, 1 insertions, 31 deletions
diff --git a/indra/newview/llluamanager.cpp b/indra/newview/llluamanager.cpp
index d1fcf21941..74306a60ba 100644
--- a/indra/newview/llluamanager.cpp
+++ b/indra/newview/llluamanager.cpp
@@ -31,6 +31,7 @@
#include "llcoros.h"
#include "llerror.h"
#include "lleventcoro.h"
+#include "llviewercontrol.h"
#include "lua_function.h"
#include "lualistener.h"
#include "stringize.h"
@@ -116,37 +117,6 @@ lua_function(print_warning, "print_warning(args...): WARNING level logging")
return 0;
}
-#ifndef LL_TEST
-
-lua_function(run_ui_command,
- "run_ui_command(name [, parameter]): "
- "call specified UI command with specified parameter")
-{
- int top = lua_gettop(L);
- std::string func_name;
- if (top >= 1)
- {
- func_name = lua_tostring(L,1);
- }
- std::string parameter;
- if (top >= 2)
- {
- parameter = lua_tostring(L,2);
- }
- LL_WARNS("LUA") << "running ui func " << func_name << " parameter " << parameter << LL_ENDL;
- LLSD event;
- event["function"] = func_name;
- if (!parameter.empty())
- {
- event["parameter"] = parameter;
- }
- sUIListener.call(event);
-
- lua_settop(L, 0);
- return 0;
-}
-#endif // ! LL_TEST
-
lua_function(post_on, "post_on(pumpname, data): post specified data to specified LLEventPump")
{
std::string pumpname{ lua_tostdstring(L, 1) };