diff options
Diffstat (limited to 'indra/llui/llluafloater.cpp')
-rw-r--r-- | indra/llui/llluafloater.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/indra/llui/llluafloater.cpp b/indra/llui/llluafloater.cpp index 62e77fd556..e584a67a00 100644 --- a/indra/llui/llluafloater.cpp +++ b/indra/llui/llluafloater.cpp @@ -35,7 +35,6 @@ #include "lltexteditor.h" const std::string LISTENER_NAME("LLLuaFloater"); -const F32 IDLE_INTERVAL = 0.5; std::set<std::string> EVENT_LIST = { "commit", @@ -48,16 +47,14 @@ std::set<std::string> EVENT_LIST = { "right_mouse_up", "post_build", "floater_close", - "keystroke", - "idle" + "keystroke" }; LLLuaFloater::LLLuaFloater(const LLSD &key) : LLFloater(key), mDispatchListener(LLUUID::generateNewID().asString(), "action"), mReplyPumpName(key["reply"].asString()), - mReqID(key), - mIdleTimer(new LLTimer()) + mReqID(key) { auto ctrl_lookup = [this](const LLSD &event, std::function<LLSD(LLUICtrl*,const LLSD&)> cb) { @@ -169,15 +166,6 @@ BOOL LLLuaFloater::postBuild() return true; } -void LLLuaFloater::draw() -{ - if (mIdleTimer->checkExpirationAndReset(IDLE_INTERVAL)) - { - postEvent(LLSD(), "idle"); - } - LLFloater::draw(); -} - void LLLuaFloater::onClose(bool app_quitting) { postEvent(llsd::map("app_quitting", app_quitting), "floater_close"); |