swift-module-digester: drop isSDKPrivate() from node since filtering should happen at AST level.

This commit is contained in:
Xi Ge
2018-10-25 17:41:28 -07:00
parent 49c16922dd
commit 8c0495f467
3 changed files with 1 additions and 13 deletions

View File

@@ -377,14 +377,6 @@ StringRef SDKNodeDecl::getScreenInfo() const {
return Ctx.buffer(OS.str());
}
bool SDKNodeDecl::isSDKPrivate() const {
if (getName().startswith("__"))
return true;
if (auto *PD = dyn_cast<SDKNodeDecl>(getParent()))
return PD->isSDKPrivate();
return false;
}
void SDKNodeDecl::printFullyQualifiedName(llvm::raw_ostream &OS) const {
std::vector<NodePtr> Parent;
for (auto *P = getParent(); isa<SDKNodeDecl>(P); P = P->getParent())