store: improve label handling

In particular, clear_labels

And some cosmetics
This commit is contained in:
Dirk-Jan C. Binnema
2025-08-29 21:10:34 +03:00
committed by Seth Ladygo
parent a2b1a7cc31
commit c074c138f8
4 changed files with 29 additions and 27 deletions

View File

@ -89,7 +89,6 @@ Mu::Labels::parse_delta_label(const std::string &expr)
return Ok(DeltaLabel{std::move(delta), std::move(label)});
}
Result<DeltaLabelVec>
Mu::Labels::parse_delta_labels(const std::string& exprs,
const std::string sepa)
@ -106,10 +105,6 @@ Mu::Labels::parse_delta_labels(const std::string& exprs,
return Ok(std::move(deltas));
}
struct cmp_delta_label { // can not yet be a λ in C++17
bool operator()(const DeltaLabel& dl1, const DeltaLabel& dl2) const {
return dl1.second < dl2.second;