diff options
| -rwxr-xr-x | indra/llappearance/lltexlayerparams.cpp | 1 | ||||
| -rwxr-xr-x | indra/newview/llinventoryobserver.cpp | 84 | ||||
| -rwxr-xr-x | indra/newview/llinventoryobserver.h | 38 | 
3 files changed, 0 insertions, 123 deletions
| diff --git a/indra/llappearance/lltexlayerparams.cpp b/indra/llappearance/lltexlayerparams.cpp index 5e9d9a658b..36147f01e0 100755 --- a/indra/llappearance/lltexlayerparams.cpp +++ b/indra/llappearance/lltexlayerparams.cpp @@ -456,7 +456,6 @@ void LLTexLayerParamColor::setWeight(F32 weight)  		return;  	} -	const LLTexLayerParamColorInfo *info = (LLTexLayerParamColorInfo *)getInfo();  	F32 min_weight = getMinWeight();  	F32 max_weight = getMaxWeight();  	F32 new_weight = llclamp(weight, min_weight, max_weight); diff --git a/indra/newview/llinventoryobserver.cpp b/indra/newview/llinventoryobserver.cpp index 9db175ec2e..6042ab996d 100755 --- a/indra/newview/llinventoryobserver.cpp +++ b/indra/newview/llinventoryobserver.cpp @@ -465,38 +465,6 @@ void LLInventoryFetchComboObserver::startFetch()  	mFetchDescendents->startFetch();  } -void LLInventoryExistenceObserver::watchItem(const LLUUID& id) -{ -	if (id.notNull()) -	{ -		mMIA.push_back(id); -	} -} - -void LLInventoryExistenceObserver::changed(U32 mask) -{ -	// scan through the incomplete items and move or erase them as -	// appropriate. -	if (!mMIA.empty()) -	{ -		for (uuid_vec_t::iterator it = mMIA.begin(); it < mMIA.end(); ) -		{ -			LLViewerInventoryItem* item = gInventory.getItem(*it); -			if (!item) -			{ -				++it; -				continue; -			} -			mExist.push_back(*it); -			it = mMIA.erase(it); -		} -		if (mMIA.empty()) -		{ -			done(); -		} -	} -} -  void LLInventoryAddItemByAssetObserver::changed(U32 mask)  {  	if(!(mask & LLInventoryObserver::ADD)) @@ -633,58 +601,6 @@ void LLInventoryCategoryAddedObserver::changed(U32 mask)  	}  } - -LLInventoryTransactionObserver::LLInventoryTransactionObserver(const LLTransactionID& transaction_id) : -	mTransactionID(transaction_id) -{ -} - -void LLInventoryTransactionObserver::changed(U32 mask) -{ -	if (mask & LLInventoryObserver::ADD) -	{ -		// This could be it - see if we are processing a bulk update -		LLMessageSystem* msg = gMessageSystem; -		if (msg->getMessageName() -		   && (0 == strcmp(msg->getMessageName(), "BulkUpdateInventory"))) -		{ -			// we have a match for the message - now check the -			// transaction id. -			LLUUID id; -			msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_TransactionID, id); -			if (id == mTransactionID) -			{ -				// woo hoo, we found it -				uuid_vec_t folders; -				uuid_vec_t items; -				S32 count; -				count = msg->getNumberOfBlocksFast(_PREHASH_FolderData); -				S32 i; -				for (i = 0; i < count; ++i) -				{ -					msg->getUUIDFast(_PREHASH_FolderData, _PREHASH_FolderID, id, i); -					if (id.notNull()) -					{ -						folders.push_back(id); -					} -				} -				count = msg->getNumberOfBlocksFast(_PREHASH_ItemData); -				for (i = 0; i < count; ++i) -				{ -					msg->getUUIDFast(_PREHASH_ItemData, _PREHASH_ItemID, id, i); -					if (id.notNull()) -					{ -						items.push_back(id); -					} -				} - -				// call the derived class the implements this method. -				done(folders, items); -			} -		} -	} -} -  void LLInventoryCategoriesObserver::changed(U32 mask)  {  	if (!mCategoryMap.size()) diff --git a/indra/newview/llinventoryobserver.h b/indra/newview/llinventoryobserver.h index aa1eae84d7..73288242eb 100755 --- a/indra/newview/llinventoryobserver.h +++ b/indra/newview/llinventoryobserver.h @@ -152,25 +152,6 @@ protected:  };  //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -// Class LLInventoryExistenceObserver -// -//   Used as a base class for doing something when all the -//   observed item ids exist in the inventory somewhere. -//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -class LLInventoryExistenceObserver : public LLInventoryObserver -{ -public: -	LLInventoryExistenceObserver() {} -	/*virtual*/ void changed(U32 mask); - -	void watchItem(const LLUUID& id); -protected: -	virtual void done() = 0; -	uuid_vec_t mExist; -	uuid_vec_t mMIA; -}; - -//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  // Class LLInventoryMovedObserver  //  // This class is used as a base class for doing something when all the @@ -241,25 +222,6 @@ protected:  };  //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -// Class LLInventoryTransactionObserver -// -//   Base class for doing something when an inventory transaction completes. -//   NOTE: This class is not quite complete. Avoid using unless you fix up its -//   functionality gaps. -//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -class LLInventoryTransactionObserver : public LLInventoryObserver -{ -public: -	LLInventoryTransactionObserver(const LLTransactionID& transaction_id); -	/*virtual*/ void changed(U32 mask); - -protected: -	virtual void done(const uuid_vec_t& folders, const uuid_vec_t& items) = 0; - -	LLTransactionID mTransactionID; -}; - -//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  // Class LLInventoryCompletionObserver  //  //   Base class for doing something when when all observed items are locally  | 
