[AttrBuilder] Remove unused removeAttributes() overload

The idiomatic way would be to call remove() with an AttributeMask
constructed from an AttributeSet.
This commit is contained in:
Nikita Popov 2022-01-16 21:32:54 +01:00
parent 7cbbef5bbc
commit 0d7fbb0737
2 changed files with 0 additions and 8 deletions

View File

@ -1048,9 +1048,6 @@ public:
return removeAttribute(A.getKindAsEnum());
}
/// Remove the attributes from the builder.
AttrBuilder &removeAttributes(AttributeList A, uint64_t WithoutIndex);
/// Add the attributes from the builder.
AttrBuilder &merge(const AttrBuilder &B);

View File

@ -1608,11 +1608,6 @@ AttrBuilder &AttrBuilder::addAttribute(StringRef A, StringRef V) {
return addAttribute(Attribute::get(Ctx, A, V));
}
AttrBuilder &AttrBuilder::removeAttributes(AttributeList AL, uint64_t Index) {
remove(AttributeMask(AL.getAttributes(Index)));
return *this;
}
AttrBuilder &AttrBuilder::removeAttribute(Attribute::AttrKind Val) {
assert((unsigned)Val < Attribute::EndAttrKinds && "Attribute out of range!");
Attrs[Val] = false;