review: move recomputeHeader to common point
This commit is contained in:
parent
01b1e0a891
commit
74ca962e86
@ -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();
|
||||
}
|
||||
|
||||
|
||||
@ -14,7 +14,6 @@ namespace dxbc {
|
||||
|
||||
Error Object::removeParts(PartPred ToRemove) {
|
||||
erase_if(Parts, ToRemove);
|
||||
recomputeHeader();
|
||||
return Error::success();
|
||||
}
|
||||
|
||||
|
||||
@ -42,8 +42,6 @@ struct Object {
|
||||
}
|
||||
|
||||
Error removeParts(PartPred ToRemove);
|
||||
|
||||
private:
|
||||
void recomputeHeader();
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user