File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -407,9 +407,6 @@ class DeclarationTargets {
407407 bool operator <(const DeclRef& other) const {
408408 return sort_id < other.sort_id ;
409409 }
410- bool operator ==(const DeclRef& other) const {
411- return sort_id == other.sort_id ;
412- }
413410 };
414411
415412 ClangDB& db;
@@ -1762,12 +1759,6 @@ struct ASTVisitor : public clang::RecursiveASTVisitor<ASTVisitor> {
17621759 return nullptr ;
17631760 }
17641761 };
1765-
1766- static const clang::FunctionDecl* FOLLY_NULLABLE
1767- getSpecializedDecl (const clang::FunctionDecl* decl) {
1768- auto tpl = decl->getPrimaryTemplate ();
1769- return tpl ? tpl->getTemplatedDecl () : nullptr ;
1770- }
17711762 };
17721763
17731764 bool VisitFunctionDecl (const clang::FunctionDecl* decl) {
@@ -1947,16 +1938,6 @@ struct ASTVisitor : public clang::RecursiveASTVisitor<ASTVisitor> {
19471938 return DeclTraits::getTemplateInstantiationPattern (fieldDecl);
19481939 }
19491940 };
1950-
1951- static const clang::VarDecl* FOLLY_NULLABLE
1952- getSpecializedDecl (const clang::VarDecl* decl) {
1953- if (auto spec =
1954- clang::dyn_cast<clang::VarTemplateSpecializationDecl>(decl)) {
1955- auto tpl = spec->getSpecializedTemplate ();
1956- return tpl ? tpl->getTemplatedDecl () : nullptr ;
1957- }
1958- return nullptr ;
1959- }
19601941 };
19611942
19621943 bool VisitVarDecl (const clang::VarDecl* decl) {
You can’t perform that action at this time.
0 commit comments