Update STEPFileReader.cpp (#5973)

Clean code

Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>
This commit is contained in:
mosfet80
2025-02-03 11:27:31 +01:00
committed by GitHub
parent 53b5dba4df
commit d41511bf8a

View File

@@ -499,21 +499,13 @@ STEP::LazyObject::LazyObject(DB& db, uint64_t id,uint64_t /*line*/, const char*
int64_t skip_depth( 0 );
while ( *a ) {
handleSkippedDepthFromToken(a, skip_depth);
/*if (*a == '(') {
++skip_depth;
} else if (*a == ')') {
--skip_depth;
}*/
if (skip_depth >= 1 && *a=='#') {
if (*(a + 1) != '#') {
/*const char *tmp;
const int64_t num = static_cast<int64_t>(strtoul10_64(a + 1, &tmp));
db.MarkRef(num, id);*/
db.MarkRef(getIdFromToken(a), id);
} else {
++a;
}
if (skip_depth >= 1 && *a=='#') {
if (*(a + 1) != '#') {
db.MarkRef(getIdFromToken(a), id);
} else {
++a;
}
}
++a;
}