diff options
author | Lynx Linden <lynx@lindenlab.com> | 2010-01-29 14:56:39 +0000 |
---|---|---|
committer | Lynx Linden <lynx@lindenlab.com> | 2010-01-29 14:56:39 +0000 |
commit | 2ec69d6d71e18c60a81d55f79e291e366d05eacd (patch) | |
tree | 178755a33514ed2dc9b5a8a2c0791396927d63a3 /indra/llui/lltextbase.cpp | |
parent | 4d6c9e3e1754d21ea5291207085113e99456f571 (diff) |
EXT-4678: Revert URL black list support from LLTextBase.
The new <nolink>URL</nolink> provides a more flexible solution that
can be specified in XUI (as we now do to disabled hyperlinking for the
sim hostname in the About floater).
Diffstat (limited to 'indra/llui/lltextbase.cpp')
-rw-r--r-- | indra/llui/lltextbase.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp index 2ee2023875..978bd317e2 100644 --- a/indra/llui/lltextbase.cpp +++ b/indra/llui/lltextbase.cpp @@ -1512,25 +1512,6 @@ void LLTextBase::setText(const LLStringExplicit &utf8str, const LLStyle::Params& onValueChange(0, getLength()); } -void LLTextBase::addBlackListUrl(const std::string &url) -{ - mBlackListUrls.push_back(url); -} - -bool LLTextBase::isBlackListUrl(const std::string &url) const -{ - std::vector<std::string>::const_iterator it; - for (it = mBlackListUrls.begin(); it != mBlackListUrls.end(); ++it) - { - const std::string &blacklist_url = *it; - if (url.find(blacklist_url) != std::string::npos) - { - return true; - } - } - return false; -} - //virtual std::string LLTextBase::getText() const { |