summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIma Mechanique <ima.mechanique@secondlife.com>2013-11-21 19:55:38 +0000
committerIma Mechanique <ima.mechanique@secondlife.com>2013-11-21 19:55:38 +0000
commitfa5c3320cc9c50462b222b1b1197d9c16064983e (patch)
tree71caab74e959c5e1688209b3b9db16389b526811
parentb5eb40cfd4849685274f9545b22becd90ba7c858 (diff)
storm-1831 Cleaning up colour LLSD processing code which is no longer used as colours come from the colors XML file.
-rwxr-xr-xindra/llui/llkeywords.cpp58
-rwxr-xr-xindra/llui/llkeywords.h2
2 files changed, 1 insertions, 59 deletions
diff --git a/indra/llui/llkeywords.cpp b/indra/llui/llkeywords.cpp
index 6aeaf4798b..5f5810812e 100755
--- a/indra/llui/llkeywords.cpp
+++ b/indra/llui/llkeywords.cpp
@@ -67,10 +67,7 @@ inline BOOL LLKeywordToken::isTail(const llwchar* s) const
return res;
}
-LLKeywords::LLKeywords() : mLoaded(FALSE)
-{
- //setFilenameSyntax( gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS,"keywords_lsl_default.xml") );
-}
+LLKeywords::LLKeywords() : mLoaded(FALSE) { }
LLKeywords::~LLKeywords()
{
@@ -205,59 +202,6 @@ bool LLKeywords::initialise(LLSD SyntaxXML)
return mLoaded;
}
-///**
-// * @brief Start processing the colour LLSD from its beginning.
-// *
-// */
-//std::string LLKeywords::processColors()
-//{
-// return processColors(mColors, "");
-//}
-
-///**
-// * @brief Recursively process the colour LLSD from an arbitrary level.
-// * @desc Process the supplied LLSD for colour data. The strPrefix is a string
-// * of hyphen separated keys from previous levels.
-// */
-//std::string LLKeywords::processColors(LLSD &settings, const std::string strPrefix)
-//{
-// if (settings.isMap() || (! settings.isMap() && strPrefix != "") )
-// {
-// LLSD llsd_map = settings;
-
-// LLSD::map_iterator my_iter = llsd_map.beginMap();
-// for ( ; my_iter != llsd_map.endMap(); ++my_iter)
-// {
-// std::string strGroup = strPrefix;
-// const LLSD::String& key = my_iter->first;
-// LLSD& value = my_iter->second;
-//
-// if (key == "color")
-// {
-// if (value.isMap() || value.isArray())
-// {
-// addColorGroup(strGroup, readColor(value));
-// }
-// else
-// {
-// LL_WARNS("Invalid Color") << "Invalid Color Entry - first: '" << key << "' second: '" << value << "'" << LL_ENDL;
-// }
-// }
-// else if (value.isMap())
-// {
-// strGroup += (strGroup.length() == 0) ? my_iter->first : "-" + my_iter->first;
-// strGroup = processColors(value, strGroup);
-// }
-// else
-// {
-// LL_WARNS("Invalid Color") << "Invalid Color Entry - first: '" << key << "' second: '" << value << "'" << LL_ENDL;
-// }
-// }
-// }
-// return strPrefix;
-//}
-//*/
-
void LLKeywords::processTokens()
{
// Add 'standard' stuff: Quotes, Comments, Strings, Labels, etc. before processing the LLSD
diff --git a/indra/llui/llkeywords.h b/indra/llui/llkeywords.h
index 074cedfc63..d0f1de8389 100755
--- a/indra/llui/llkeywords.h
+++ b/indra/llui/llkeywords.h
@@ -118,8 +118,6 @@ public:
void findSegments(std::vector<LLTextSegmentPtr> *seg_list, const LLWString& text, const LLColor4 &defaultColor, class LLTextEditor& editor );
bool initialise(LLSD SyntaxXML);
- std::string processColors();
- std::string processColors(LLSD &data, const std::string strGroup);
void processTokens();
// Add the token as described