summaryrefslogtreecommitdiff
path: root/indra/llui/llurlentry.cpp
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2010-04-28 17:02:50 -0700
committerJames Cook <james@lindenlab.com>2010-04-28 17:02:50 -0700
commit8fae11ee368e5b1dce858cdd698714384430858b (patch)
treeec3d42a7cacc41a50547338ca39aa81e829e55c3 /indra/llui/llurlentry.cpp
parent0a249b25b993f004ce05d48f7bce7988d398eb03 (diff)
Remove prototype support for badges next to avatar names
Easy to reimplement if we decide we want to do it.
Diffstat (limited to 'indra/llui/llurlentry.cpp')
-rw-r--r--indra/llui/llurlentry.cpp27
1 files changed, 4 insertions, 23 deletions
diff --git a/indra/llui/llurlentry.cpp b/indra/llui/llurlentry.cpp
index a79a257c09..d59bd0cb71 100644
--- a/indra/llui/llurlentry.cpp
+++ b/indra/llui/llurlentry.cpp
@@ -334,10 +334,8 @@ void LLUrlEntryAgent::onAvatarNameCache(const LLUUID& id,
{
// IDEVO demo code
std::string label = av_name.mDisplayName + " (" + av_name.mSLID + ")";
- // use custom icon if available
- std::string icon = (!av_name.mBadge.empty() ? av_name.mBadge : mIcon);
// received the agent name from the server - tell our observers
- callObservers(id.asString(), label, icon);
+ callObservers(id.asString(), label, mIcon);
}
std::string LLUrlEntryAgent::getTooltip(const std::string &string) const
@@ -456,26 +454,9 @@ std::string LLUrlEntryAgent::getLabel(const std::string &url, const LLUrlLabelCa
std::string LLUrlEntryAgent::getIcon(const std::string &url) const
{
- std::string agent_id_string = getIDStringFromUrl(url);
- if (agent_id_string.empty())
- {
- return mIcon;
- }
-
- LLUUID agent_id(agent_id_string);
- if (agent_id.isNull())
- {
- return mIcon;
- }
-
- LLAvatarName av_name;
- LLAvatarNameCache::get(agent_id, &av_name);
- if (av_name.mBadge.empty())
- {
- return mIcon;
- }
-
- return av_name.mBadge;
+ // *NOTE: Could look up a badge here by calling getIDStringFromUrl()
+ // and looking up the badge for the agent.
+ return mIcon;
}
//