[Radar] Remove id null checks where null id is an impossibility due to earlier checks
This commit is contained in:
@@ -174,17 +174,13 @@ LLAvatarListEntry::LLAvatarListEntry(const LLUUID& id, const std::string &name,
|
|||||||
mActivityType(ACTIVITY_NEW), mActivityTimer(),
|
mActivityType(ACTIVITY_NEW), mActivityTimer(),
|
||||||
mIsInList(false), mAge(-1), mAgeAlert(false), mTime(time(NULL))
|
mIsInList(false), mAge(-1), mAgeAlert(false), mTime(time(NULL))
|
||||||
{
|
{
|
||||||
if (mID.notNull())
|
LLAvatarPropertiesProcessor::getInstance()->addObserver(mID, this);
|
||||||
{
|
LLAvatarPropertiesProcessor::getInstance()->sendAvatarPropertiesRequest(mID);
|
||||||
LLAvatarPropertiesProcessor::getInstance()->addObserver(mID, this);
|
|
||||||
LLAvatarPropertiesProcessor::getInstance()->sendAvatarPropertiesRequest(mID);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LLAvatarListEntry::~LLAvatarListEntry()
|
LLAvatarListEntry::~LLAvatarListEntry()
|
||||||
{
|
{
|
||||||
if (mID.notNull())
|
LLAvatarPropertiesProcessor::getInstance()->removeObserver(mID, this);
|
||||||
LLAvatarPropertiesProcessor::getInstance()->removeObserver(mID, this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// virtual
|
// virtual
|
||||||
@@ -764,12 +760,6 @@ void LLFloaterAvatarList::refreshAvatarList()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (av_id.isNull())
|
|
||||||
{
|
|
||||||
//llwarns << "Avatar with null key somehow got into the list!" << llendl;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.value = av_id;
|
element.value = av_id;
|
||||||
|
|
||||||
LLScrollListCell::Params mark;
|
LLScrollListCell::Params mark;
|
||||||
|
|||||||
Reference in New Issue
Block a user