DRTVWR-493 Cleaned up unneded inits.
parent
56715de2cf
commit
47cbcb61f8
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -80,8 +80,6 @@ public:
|
|||
PARTICLE = 0x0080,
|
||||
};
|
||||
|
||||
static void initClass();
|
||||
|
||||
static void cacheFaceInVRAM(const LLVolumeFace& vf);
|
||||
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -1226,8 +1226,6 @@ bool idle_startup()
|
|||
LLSurface::initClasses();
|
||||
display_startup();
|
||||
|
||||
|
||||
LLFace::initClass();
|
||||
display_startup();
|
||||
|
||||
LLDrawable::initClass();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue