simplification

This commit is contained in:
Krasimir Angelov
2026-08-04 11:09:40 +02:00
parent cccce4d064
commit 6307d37d0f
+2 -8
View File
@@ -1600,21 +1600,15 @@ void PgfParseTableMaker::symbol_bind(Item *item, State *state, PgfSymbol sym)
void PgfParseTableMaker::suspend(Cont *cont,Item *item,size_t n_suspended1,size_t n_suspended)
{
// collect the cats first, since calling combine in
// the loop will change the search index
std::vector<CCat*> ccats;
for (auto it1 : cont->state->completed[cont]) {
for (auto it2 : it1.second) {
CCat *ccat = it2.second;
if (ccat != NULL) {
ccats.push_back(ccat);
Item *new_item = new (item) Item;
combine(cont->state,new_item,ccat);
}
}
}
for (CCat *ccat : ccats) {
Item *new_item = new (item) Item;
combine(cont->state,new_item,ccat);
}
auto pitem = clone_item(item);
auto acat = ref<PgfSymbolACat>::from_ptr((PgfSymbolACat*) &cont->lincat->name);