diff options
author | brad kittenbrink <brad@lindenlab.com> | 2009-07-01 18:49:03 -0400 |
---|---|---|
committer | brad kittenbrink <brad@lindenlab.com> | 2009-07-01 18:49:03 -0400 |
commit | e17078810b4d1dbf11a13e9c4991451c85492856 (patch) | |
tree | e89c44bce72a4e03fec9116c9136a2369a1704d9 /indra/newview | |
parent | 7c1742ec7d626ff34084624729b338f9abc58686 (diff) | |
parent | b082b5c9de83733f3d702a35ce60e6c0f61f7dc1 (diff) |
Merged in backout of setSetting listener.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llappviewerlistener.cpp | 13 | ||||
-rw-r--r-- | indra/newview/llappviewerlistener.h | 1 |
2 files changed, 0 insertions, 14 deletions
diff --git a/indra/newview/llappviewerlistener.cpp b/indra/newview/llappviewerlistener.cpp index befebae88e..a8c98b17a7 100644 --- a/indra/newview/llappviewerlistener.cpp +++ b/indra/newview/llappviewerlistener.cpp @@ -18,7 +18,6 @@ // external library headers // other Linden headers #include "llappviewer.h" -#include "llviewercontrol.h" LLAppViewerListener::LLAppViewerListener(const std::string& pumpname, LLAppViewer* llappviewer): LLDispatchListener(pumpname, "op"), @@ -26,21 +25,9 @@ LLAppViewerListener::LLAppViewerListener(const std::string& pumpname, LLAppViewe { // add() every method we want to be able to invoke via this event API. add("requestQuit", &LLAppViewerListener::requestQuit); - add("setSetting", &LLAppViewerListener::setSetting); } void LLAppViewerListener::requestQuit(const LLSD& event) const { mAppViewer->requestQuit(); } - -void LLAppViewerListener::setSetting(const LLSD & event) const -{ - std::string control_name = event["name"].asString(); - if (gSavedSettings.controlExists(control_name)) - { - LLControlVariable* control = gSavedSettings.getControl(control_name); - - control->set(event["value"]); - } -} diff --git a/indra/newview/llappviewerlistener.h b/indra/newview/llappviewerlistener.h index ff63b69c13..ab17dd1d90 100644 --- a/indra/newview/llappviewerlistener.h +++ b/indra/newview/llappviewerlistener.h @@ -27,7 +27,6 @@ public: private: void requestQuit(const LLSD& event) const; - void setSetting(const LLSD & event) const; LLAppViewer* mAppViewer; }; |