review: move recomputeHeader to common point

This commit is contained in:
Finn Plummer 2025-08-14 16:49:50 +00:00
parent 01b1e0a891
commit 74ca962e86
3 changed files with 1 additions and 3 deletions

View File

@ -31,6 +31,7 @@ static Error handleArgs(const CommonConfig &Config, Object &Obj) {
if (auto E = Obj.removeParts(RemovePred))
return E;
Obj.recomputeHeader();
return Error::success();
}

View File

@ -14,7 +14,6 @@ namespace dxbc {
Error Object::removeParts(PartPred ToRemove) {
erase_if(Parts, ToRemove);
recomputeHeader();
return Error::success();
}

View File

@ -42,8 +42,6 @@ struct Object {
}
Error removeParts(PartPred ToRemove);
private:
void recomputeHeader();
};