Properly comment out code so compilers quit whining about 'unreachable'.

This commit is contained in:
Router Gray
2019-05-24 06:34:03 -05:00
parent bf9e900731
commit 4329d46ac4
2 changed files with 7 additions and 7 deletions

View File

@@ -342,12 +342,13 @@ void LLFloaterBulkPermission::handleInventory(LLViewerObject* viewer_obj, LLInve
//status_text.setArg("[STATUS]", getString("status_ok_text"));
status_text.setArg("[STATUS]", "");
}
#if 0
else
{
//status_text.setArg("[STATUS]", getString("status_bad_text"));
status_text.setArg("[STATUS]", "");
}
#endif
list->addSimpleElement(status_text.getString());
//TODO if we are an object inside an object we should check a recuse flag and if set

View File

@@ -1050,12 +1050,9 @@ void LLPreviewGesture::saveIfNeeded()
LLDataPackerAsciiBuffer dp(buffer, max_size);
BOOL ok = gesture->serialize(dp);
// <edit>
//if (dp.getCurrentSize() > 1000)
if(0)
// </edit>
bool ok = gesture->serialize(dp);
#if 0 // <edit>
if (dp.getCurrentSize() > 1000)
{
LLNotificationsUtil::add("GestureSaveFailedTooManySteps");
@@ -1063,6 +1060,8 @@ void LLPreviewGesture::saveIfNeeded()
gesture = nullptr;
}
else if (!ok)
#endif // </edit>
if (!ok)
{
LLNotificationsUtil::add("GestureSaveFailedTryAgain");
delete gesture;