Properly comment out code so compilers quit whining about 'unreachable'.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user