diff options
| -rw-r--r-- | indra/newview/llappviewer.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llface.cpp | 6 | ||||
| -rw-r--r-- | indra/newview/llface.h | 2 | ||||
| -rw-r--r-- | indra/newview/llstartup.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/lltoastalertpanel.cpp | 13 | ||||
| -rw-r--r-- | indra/newview/lltoastalertpanel.h | 15 | ||||
| -rw-r--r-- | indra/newview/llweb.cpp | 27 | ||||
| -rw-r--r-- | indra/newview/llweb.h | 2 | 
8 files changed, 10 insertions, 59 deletions
| diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 823ded7a50..076594a5c8 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -896,8 +896,6 @@ bool LLAppViewer::init()  	// LLKeyboard relies on LLUI to know what some accelerator keys are called.  	LLKeyboard::setStringTranslatorFunc( LLTrans::getKeyboardString ); -	LLWeb::initClass();			  // do this after LLUI -  	// Provide the text fields with callbacks for opening Urls  	LLUrlAction::setOpenURLCallback(boost::bind(&LLWeb::loadURL, _1, LLStringUtil::null, LLStringUtil::null));  	LLUrlAction::setOpenURLInternalCallback(boost::bind(&LLWeb::loadURLInternal, _1, LLStringUtil::null, LLStringUtil::null, false)); diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index b2da5bb9f8..004e4a6262 100644 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -228,12 +228,6 @@ void LLFace::destroy()  	mVObjp = NULL;  } - -// static -void LLFace::initClass() -{ -} -  void LLFace::setWorldMatrix(const LLMatrix4 &mat)  {  	LL_ERRS() << "Faces on this drawable are not independently modifiable\n" << LL_ENDL; diff --git a/indra/newview/llface.h b/indra/newview/llface.h index 736d45b7ad..83547c75e8 100644 --- a/indra/newview/llface.h +++ b/indra/newview/llface.h @@ -80,8 +80,6 @@ public:  		PARTICLE		= 0x0080,  	}; -	static void initClass(); -  	static void cacheFaceInVRAM(const LLVolumeFace& vf);  public: diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index 15b3ba75c9..7f9f0da315 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -1226,8 +1226,6 @@ bool idle_startup()  		LLSurface::initClasses();  		display_startup(); - -		LLFace::initClass();  		display_startup();  		LLDrawable::initClass(); diff --git a/indra/newview/lltoastalertpanel.cpp b/indra/newview/lltoastalertpanel.cpp index 495c9c1f44..941cb410fc 100644 --- a/indra/newview/lltoastalertpanel.cpp +++ b/indra/newview/lltoastalertpanel.cpp @@ -45,6 +45,7 @@  #include "llrootview.h"  #include "lltransientfloatermgr.h"  #include "llviewercontrol.h" // for gSavedSettings +#include "llweb.h"  #include <boost/algorithm/string.hpp> @@ -52,7 +53,6 @@ const S32 MAX_ALLOWED_MSG_WIDTH = 400;  const F32 DEFAULT_BUTTON_DELAY = 0.5f;  /*static*/ LLControlGroup* LLToastAlertPanel::sSettings = NULL; -/*static*/ LLToastAlertPanel::URLLoader* LLToastAlertPanel::sURLLoader;  //-----------------------------------------------------------------------------  // Private methods @@ -555,9 +555,16 @@ void LLToastAlertPanel::onButtonPressed( const LLSD& data, S32 button )  	response[button_data->mButton->getName()] = true;  	// If we declared a URL and chose the URL option, go to the url -	if (!button_data->mURL.empty() && sURLLoader != NULL) +	if (!button_data->mURL.empty())  	{ -		sURLLoader->load(button_data->mURL, button_data->mURLExternal); +		if (button_data->mURLExternal) +		{ +			LLWeb::loadURLExternal(button_data->mURL); +		} +		else +		{ +			LLWeb::loadURL(button_data->mURL); +		}  	}  	mNotification->respond(response); // new notification reponse diff --git a/indra/newview/lltoastalertpanel.h b/indra/newview/lltoastalertpanel.h index d1be5e018e..15bf11d42c 100644 --- a/indra/newview/lltoastalertpanel.h +++ b/indra/newview/lltoastalertpanel.h @@ -52,20 +52,6 @@ class LLToastAlertPanel  public:  	typedef bool (*display_callback_t)(S32 modal); -	class URLLoader -	{ -	public: -		virtual void load(const std::string& url, bool force_open_externally = 0) = 0; -		virtual ~URLLoader() -		{ -		} -	}; - -	static void setURLLoader(URLLoader* loader) -	{ -		sURLLoader = loader; -	} -	  public:  	// User's responsibility to call show() after creating these.  	LLToastAlertPanel( LLNotificationPtr notep, bool is_modal ); @@ -94,7 +80,6 @@ private:  	BOOL hasTitleBar() const;  private: -	static URLLoader* sURLLoader;  	static LLControlGroup* sSettings;  	struct ButtonData diff --git a/indra/newview/llweb.cpp b/indra/newview/llweb.cpp index 0cdc7f0d88..a34c5826ed 100644 --- a/indra/newview/llweb.cpp +++ b/indra/newview/llweb.cpp @@ -39,7 +39,6 @@  #include "lllogininstance.h"  #include "llparcel.h"  #include "llsd.h" -#include "lltoastalertpanel.h"  #include "llui.h"  #include "lluri.h"  #include "llversioninfo.h" @@ -57,32 +56,6 @@  bool on_load_url_external_response(const LLSD& notification, const LLSD& response, bool async ); -class URLLoader : public LLToastAlertPanel::URLLoader -{ -	virtual void load(const std::string& url , bool force_open_externally) -	{ -		if (force_open_externally) -		{ -			LLWeb::loadURLExternal(url); -		} -		else -		{ -			LLWeb::loadURL(url); -		} -	} -}; -static URLLoader sAlertURLLoader; - - -// static -void LLWeb::initClass() -{ -	LLToastAlertPanel::setURLLoader(&sAlertURLLoader); -} - - - -  // static  void LLWeb::loadURL(const std::string& url, const std::string& target, const std::string& uuid)  { diff --git a/indra/newview/llweb.h b/indra/newview/llweb.h index 7149ce9baf..0426f00f27 100644 --- a/indra/newview/llweb.h +++ b/indra/newview/llweb.h @@ -46,8 +46,6 @@ public:  		BROWSER_INT_LL_EXT_OTHERS = 1,  		BROWSER_INTERNAL_ONLY = 2  	}; - -	static void initClass();  	/// Load the given url in the operating system's web browser, async if we want to return immediately  	/// before browser has spawned | 
