Remove old pointless code
Somehow fixed my BOM crash
This commit is contained in:
@@ -5994,9 +5994,6 @@ void rez_attachment(LLViewerInventoryItem* item, LLViewerJointAttachment* attach
|
||||
return;
|
||||
}
|
||||
|
||||
LL_DEBUGS("Avatar") << "ATT add rez request for " << item->getName() << " id " << item_id << LL_ENDL;
|
||||
gAgentAvatarp->addAttachmentRequest(item_id);
|
||||
|
||||
S32 attach_pt = 0;
|
||||
if (isAgentAvatarValid() && attachment)
|
||||
{
|
||||
|
||||
@@ -1066,34 +1066,6 @@ BOOL LLVOAvatarSelf::isWearingAttachment(const LLUUID& inv_item_id) const
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
BOOL LLVOAvatarSelf::attachmentWasRequested(const LLUUID& inv_item_id) const
|
||||
{
|
||||
constexpr F32 REQUEST_EXPIRATION_SECONDS = 5.0; // any request older than this is ignored/removed.
|
||||
auto it = mAttachmentRequests.find(inv_item_id);
|
||||
if (it != mAttachmentRequests.end())
|
||||
{
|
||||
if (it->second.getElapsedTimeF32() > REQUEST_EXPIRATION_SECONDS)
|
||||
mAttachmentRequests.erase(it);
|
||||
else
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void LLVOAvatarSelf::addAttachmentRequest(const LLUUID& inv_item_id)
|
||||
{
|
||||
LLTimer current_time;
|
||||
mAttachmentRequests[inv_item_id] = current_time;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
void LLVOAvatarSelf::removeAttachmentRequest(const LLUUID& inv_item_id)
|
||||
{
|
||||
mAttachmentRequests.erase(inv_item_id);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// getWornAttachment()
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -1182,8 +1154,6 @@ const LLViewerJointAttachment *LLVOAvatarSelf::attachObject(LLViewerObject *view
|
||||
{
|
||||
const LLUUID& attachment_id = viewer_object->getAttachmentItemID();
|
||||
LLAppearanceMgr::instance().registerAttachment(attachment_id);
|
||||
// Clear any pending requests once the attachment arrives.
|
||||
removeAttachmentRequest(attachment_id);
|
||||
updateLODRiggedAttachments();
|
||||
|
||||
// [RLVa:KB] - Checked: 2010-08-22 (RLVa-1.2.1a) | Modified: RLVa-1.2.1a
|
||||
|
||||
@@ -298,9 +298,6 @@ protected:
|
||||
public:
|
||||
void updateAttachmentVisibility(U32 camera_mode);
|
||||
BOOL isWearingAttachment(const LLUUID& inv_item_id) const;
|
||||
BOOL attachmentWasRequested(const LLUUID& inv_item_id) const;
|
||||
void addAttachmentRequest(const LLUUID& inv_item_id);
|
||||
void removeAttachmentRequest(const LLUUID& inv_item_id);
|
||||
LLViewerObject* getWornAttachment(const LLUUID& inv_item_id);
|
||||
bool getAttachedPointName(const LLUUID& inv_item_id, std::string& name) const;
|
||||
// [RLVa:KB] - Checked: 2009-12-18 (RLVa-1.1.0i) | Added: RLVa-1.1.0i
|
||||
@@ -316,8 +313,6 @@ public:
|
||||
boost::signals2::connection setAttachmentCallback(const attachment_signal_t::slot_type& cb);
|
||||
// [/RLVa:KB]
|
||||
private:
|
||||
// Track attachments that have been requested but have not arrived yet.
|
||||
mutable std::map<LLUUID,LLTimer> mAttachmentRequests;
|
||||
// [RLVa:KB] - Checked: 2012-07-28 (RLVa-1.4.7)
|
||||
attachment_signal_t* mAttachmentSignal;
|
||||
// [/RLVa:KB]
|
||||
|
||||
Reference in New Issue
Block a user