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]", getString("status_ok_text"));
|
||||||
status_text.setArg("[STATUS]", "");
|
status_text.setArg("[STATUS]", "");
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//status_text.setArg("[STATUS]", getString("status_bad_text"));
|
//status_text.setArg("[STATUS]", getString("status_bad_text"));
|
||||||
status_text.setArg("[STATUS]", "");
|
status_text.setArg("[STATUS]", "");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
list->addSimpleElement(status_text.getString());
|
list->addSimpleElement(status_text.getString());
|
||||||
|
|
||||||
//TODO if we are an object inside an object we should check a recuse flag and if set
|
//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);
|
LLDataPackerAsciiBuffer dp(buffer, max_size);
|
||||||
|
|
||||||
BOOL ok = gesture->serialize(dp);
|
bool ok = gesture->serialize(dp);
|
||||||
|
#if 0 // <edit>
|
||||||
// <edit>
|
if (dp.getCurrentSize() > 1000)
|
||||||
//if (dp.getCurrentSize() > 1000)
|
|
||||||
if(0)
|
|
||||||
// </edit>
|
|
||||||
{
|
{
|
||||||
LLNotificationsUtil::add("GestureSaveFailedTooManySteps");
|
LLNotificationsUtil::add("GestureSaveFailedTooManySteps");
|
||||||
|
|
||||||
@@ -1063,6 +1060,8 @@ void LLPreviewGesture::saveIfNeeded()
|
|||||||
gesture = nullptr;
|
gesture = nullptr;
|
||||||
}
|
}
|
||||||
else if (!ok)
|
else if (!ok)
|
||||||
|
#endif // </edit>
|
||||||
|
if (!ok)
|
||||||
{
|
{
|
||||||
LLNotificationsUtil::add("GestureSaveFailedTryAgain");
|
LLNotificationsUtil::add("GestureSaveFailedTryAgain");
|
||||||
delete gesture;
|
delete gesture;
|
||||||
|
|||||||
Reference in New Issue
Block a user