[apps/shared/values_controller] Clean assertions in reusableCell

This commit is contained in:
Ruben Dashyan
2019-08-27 09:54:05 +02:00
parent 580f0f79f5
commit 826e2c7aaf

View File

@@ -171,15 +171,13 @@ int ValuesController::indexFromCumulatedWidth(KDCoordinate offsetX) {
}
HighlightCell * ValuesController::reusableCell(int index, int type) {
assert(index >= 0);
assert(0 <= index && index < reusableCellCount(type));
switch (type) {
case 0:
assert(index == 0);
return &m_abscissaTitleCell;
case 1:
return functionTitleCells(index);
case 2:
assert(index < k_maxNumberOfAbscissaCells);
return &m_abscissaCells[index];
case 3:
return floatCells(index);