[apps/shared/values_controller] Simplify typeAtLocation

This commit is contained in:
Ruben Dashyan
2019-08-23 10:23:44 +02:00
parent 04fcc0eac4
commit d9028b2cc5

View File

@@ -220,16 +220,7 @@ int ValuesController::reusableCellCount(int type) {
}
int ValuesController::typeAtLocation(int i, int j) {
if (j == 0) {
if (i == 0) {
return 0;
}
return 1;
}
if (i == 0) {
return 2;
}
return 3;
return (i > 0) + 2 * (j > 0);
}
bool ValuesController::isEmpty() const {