diff options
| author | Nat Goodspeed <nat@lindenlab.com> | 2012-10-15 09:38:28 -0400 | 
|---|---|---|
| committer | Nat Goodspeed <nat@lindenlab.com> | 2012-10-15 09:38:28 -0400 | 
| commit | bf99126a37062d80e7887e2634b34f1da0ed309e (patch) | |
| tree | 9ea16cb4e5c455e9ff8fcf51b79e720232adc695 | |
| parent | 543b7ee9f7eb104497e971961fc0c39ed32ef54d (diff) | |
Remove LLUICtrlFactory::findSkinnedFilename(): cf. LLDir method.
Richard points out that LLUICtrlFactory::findSkinnedFilename() adds little
value. It was called from exactly one place, and that one place could easily
obtain the information another way. The concern is that it could confuse a
reader of the code with regard to the other findSkinnedFilename[s]() methods
in LLDir. Clarifying the code base is a Good Thing. Removing.
| -rw-r--r-- | indra/llui/lluictrlfactory.cpp | 8 | ||||
| -rw-r--r-- | indra/llui/lluictrlfactory.h | 10 | 
2 files changed, 3 insertions, 15 deletions
| diff --git a/indra/llui/lluictrlfactory.cpp b/indra/llui/lluictrlfactory.cpp index f7307cd076..bd06476936 100644 --- a/indra/llui/lluictrlfactory.cpp +++ b/indra/llui/lluictrlfactory.cpp @@ -232,14 +232,6 @@ void LLUICtrlFactory::setCtrlParent(LLView* view, LLView* parent, S32 tab_group)  	parent->addChild(view, tab_group);  } - -// Avoid directly using LLUI and LLDir in the template code -//static -std::string LLUICtrlFactory::findSkinnedFilename(const std::string& filename) -{ -	return gDirUtilp->findSkinnedFilenameBaseLang(LLDir::XUI, filename); -} -  //static   void LLUICtrlFactory::copyName(LLXMLNodePtr src, LLXMLNodePtr dest)  { diff --git a/indra/llui/lluictrlfactory.h b/indra/llui/lluictrlfactory.h index 1acfd24112..ca6ad254b1 100644 --- a/indra/llui/lluictrlfactory.h +++ b/indra/llui/lluictrlfactory.h @@ -173,18 +173,17 @@ public:  	static T* createFromFile(const std::string &filename, LLView *parent, const widget_registry_t& registry)  	{  		T* widget = NULL; -		 -		std::string skinned_filename = findSkinnedFilename(filename); +  		instance().pushFileName(filename);  		{  			LLXMLNodePtr root_node;  			if (!LLUICtrlFactory::getLayeredXMLNode(filename, root_node))  			{ -				llwarns << "Couldn't parse XUI file: " << skinned_filename << llendl; +				llwarns << "Couldn't parse XUI file: " << instance().getCurFileName() << llendl;  				goto fail;  			} -			 +  			LLView* view = getInstance()->createFromXML(root_node, parent, filename, registry, NULL);  			if (view)  			{ @@ -299,9 +298,6 @@ private:  	// this exists to get around dependency on llview  	static void setCtrlParent(LLView* view, LLView* parent, S32 tab_group); -	// Avoid directly using LLUI and LLDir in the template code -	static std::string findSkinnedFilename(const std::string& filename); -  	class LLPanel*		mDummyPanel;  	std::vector<std::string>	mFileNames;  }; | 
