Skip to content

Commit 35c6b34

Browse files
generatedunixname537391475639613meta-codesync[bot]
authored andcommitted
fbcode/glean/lang/clang/ast.cpp
Reviewed By: CatherineGasnier Differential Revision: D89268366 fbshipit-source-id: 4264f9899d8d40ac97fe9c3f86abc28cf00b6f44
1 parent 054eaaf commit 35c6b34

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

glean/lang/clang/ast.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)