aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/AST/DeclBase.cpp')
-rw-r--r--lib/AST/DeclBase.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp
index ddedc65a1b..d4f997de76 100644
--- a/lib/AST/DeclBase.cpp
+++ b/lib/AST/DeclBase.cpp
@@ -372,18 +372,6 @@ void Decl::swapAttrs(Decl *RHS) {
RHS->HasAttrs = true;
}
-void Decl::copyAttrs(Decl *SRC) {
- if (!SRC->hasAttrs())
- return;
- ASTContext &Context = getASTContext();
- for (const Attr *attr = SRC->getAttrs(); attr; attr = attr->getNext()) {
- Attr *NewAttr = attr->clone(Context);
- addAttr(const_cast<Attr*>(NewAttr));
- }
- HasAttrs = true;
-}
-
-
void Decl::Destroy(ASTContext &C) {
// Free attributes for this decl.
if (HasAttrs) {