FIRE-31508: Remove/move unneeded gets

master
Angeldark Raymaker 2024-08-20 20:01:28 +01:00
parent 11cbf8a3dc
commit 765652e337
1 changed files with 10 additions and 7 deletions

View File

@ -5376,9 +5376,6 @@ void LLFolderBridge::createWearable(LLFolderBridge* bridge, LLWearableType::ETyp
//<FS:AR> FIRE-31508: refactored from void LLFolderBridge::modifyOutfit(BOOL append)
bool LLFolderBridge::modifyOutfitExceedsWearFolderLimit()
{
LLInventoryModel *model = getInventoryModel();
if (!model)
return false;
LLViewerInventoryCategory *cat = getCategory();
if (!cat)
return false;
@ -5404,10 +5401,12 @@ bool LLFolderBridge::modifyOutfitExceedsWearFolderLimit()
void LLFolderBridge::modifyOutfit(BOOL append)
{
LLInventoryModel* model = getInventoryModel();
if(!model) return;
LLViewerInventoryCategory* cat = getCategory();
if(!cat) return;
// <FS:AR> FIRE-31508: Commented out for slight efficiency.
// LLInventoryModel* model = getInventoryModel();
// if(!model) return;
// LLViewerInventoryCategory* cat = getCategory();
// if(!cat) return;
// <FS:AR/> FIRE-31508
//<FS:AR> FIRE-31508: refactored to bool modifyOutfitExceedsWearFolderLimit(), rather than duplicating code
//// checking amount of items to wear
@ -5430,6 +5429,10 @@ void LLFolderBridge::modifyOutfit(BOOL append)
//}
if (modifyOutfitExceedsWearFolderLimit())
return;
LLViewerInventoryCategory *cat = getCategory();
if (!cat)
return;
//</FS:AR> FIRE-31508
if (isAgentInventory())