remove misleading comments

This commit is contained in:
silverweed 2024-09-06 16:14:58 +02:00
parent f285609562
commit c210ef86cc

View file

@ -191,7 +191,6 @@ void gather_ntuple_metadata(Arena *arena, RMicroFileReader &reader, const RNTupl
b8 pinfo_is_after_last = pinfo->range.start >= last_inserted_pinfo->range.end(); b8 pinfo_is_after_last = pinfo->range.start >= last_inserted_pinfo->range.end();
if (pinfo_is_after_last) { if (pinfo_is_after_last) {
for (Page_Info_Node *node = last_inserted_pinfo->next; node; node = node->next) { for (Page_Info_Node *node = last_inserted_pinfo->next; node; node = node->next) {
// sanity check for duplicate pages
if (pinfo->range.start == node->range.start) { if (pinfo->range.start == node->range.start) {
duplicate = true; duplicate = true;
break; break;
@ -213,7 +212,6 @@ void gather_ntuple_metadata(Arena *arena, RMicroFileReader &reader, const RNTupl
} }
} else { } else {
for (Page_Info_Node *node = last_inserted_pinfo; node; node = node->prev) { for (Page_Info_Node *node = last_inserted_pinfo; node; node = node->prev) {
// sanity check for duplicate pages
if (pinfo->range.start == node->range.start) { if (pinfo->range.start == node->range.start) {
duplicate = true; duplicate = true;
break; break;