Remove references to deprecated nconmax and njmax.

PiperOrigin-RevId: 809987304
Change-Id: I4109497fe108234dd77011d61eb3ef833e6ae111
This commit is contained in:
Taylor Howell
2025-09-22 06:27:56 -07:00
committed by Copybara-Service
parent 4bbe4e5ebc
commit d616f11508
4 changed files with 2 additions and 11 deletions
-6
View File
@@ -210,12 +210,6 @@ static int mj_vertBodyWeight(const mjModel* m, const mjData* d, int f, int v,
// add contact to d->contact list; return 0 if success; 1 if buffer full
int mj_addContact(const mjModel* m, mjData* d, const mjContact* con) {
// if nconmax is specified and ncon >= nconmax, warn and return error
if (m->nconmax != -1 && d->ncon >= m->nconmax) {
mj_warning(d, mjWARN_CONTACTFULL, d->ncon);
return 1;
}
// move arena pointer back to the end of the existing contact array and invalidate efc_ arrays
d->parena = d->ncon * sizeof(mjContact);
#ifdef ADDRESS_SANITIZER