From 87217e2365ee6135d9f467cd3c14d69cda4ea109 Mon Sep 17 00:00:00 2001 From: Areloch Date: Fri, 4 Dec 2020 11:22:25 -0600 Subject: [PATCH] Removes unneeded redundant asserts when the functions already have range sanity checks --- Engine/source/gui/controls/guiGameListMenuCtrl.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Engine/source/gui/controls/guiGameListMenuCtrl.cpp b/Engine/source/gui/controls/guiGameListMenuCtrl.cpp index 3ecc89d9e..ece9535e5 100644 --- a/Engine/source/gui/controls/guiGameListMenuCtrl.cpp +++ b/Engine/source/gui/controls/guiGameListMenuCtrl.cpp @@ -1006,7 +1006,6 @@ void GuiGameListMenuCtrl::setThisControl() StringTableEntry GuiGameListMenuCtrl::getRowLabel(S32 rowIndex) const { - AssertFatal(isValidRowIndex(rowIndex), avar("GuiGameListMenuCtrl: You can't get the label from row %d of %s because it is not a valid row index. Please specify a valid row index in the range [0, %d).", rowIndex, getName(), getRowCount())); if (! isValidRowIndex(rowIndex)) { // not a valid row index, don't do anything @@ -1017,7 +1016,6 @@ StringTableEntry GuiGameListMenuCtrl::getRowLabel(S32 rowIndex) const void GuiGameListMenuCtrl::setRowLabel(S32 rowIndex, const char * label) { - AssertFatal(isValidRowIndex(rowIndex), avar("GuiGameListMenuCtrl: You can't set the label on row %d of %s because it is not a valid row index. Please specify a valid row index in the range [0, %d).", rowIndex, getName(), getRowCount())); if (! isValidRowIndex(rowIndex)) { // not a valid row index, don't do anything