aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-01-15 23:35:12 +0000
committerTed Kremenek <kremenek@apple.com>2010-01-15 23:35:12 +0000
commit38afa4156c4786f98efd1fcc1527392eaa5560a5 (patch)
treee50e1bcd2f8b9bc3ee000cf42fad0365772e80b2
parentc5b48b3319be4d7a421871e32fb016cff93172e6 (diff)
Remove unused code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93586 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/CIndex/CIndex.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp
index 4e7e86a459..fd5db0b74f 100644
--- a/tools/CIndex/CIndex.cpp
+++ b/tools/CIndex/CIndex.cpp
@@ -130,42 +130,6 @@ static enum CXCursorKind TranslateDeclRefExpr(DeclRefExpr *DRE) {
return CXCursor_NotImplemented;
}
-#if 0
-// Will be useful one day.
-class CRefVisitor : public StmtVisitor<CRefVisitor> {
- CXDecl CDecl;
- CXDeclIterator Callback;
- CXClientData CData;
-
- void Call(enum CXCursorKind CK, Stmt *SRef) {
- CXCursor C = { CK, CDecl, SRef };
- Callback(CDecl, C, CData);
- }
-
-public:
- CRefVisitor(CXDecl C, CXDeclIterator cback, CXClientData D) :
- CDecl(C), Callback(cback), CData(D) {}
-
- void VisitStmt(Stmt *S) {
- for (Stmt::child_iterator C = S->child_begin(), CEnd = S->child_end();
- C != CEnd; ++C)
- Visit(*C);
- }
- void VisitDeclRefExpr(DeclRefExpr *Node) {
- Call(TranslateDeclRefExpr(Node), Node);
- }
- void VisitMemberExpr(MemberExpr *Node) {
- Call(CXCursor_MemberRef, Node);
- }
- void VisitObjCMessageExpr(ObjCMessageExpr *Node) {
- Call(CXCursor_ObjCSelectorRef, Node);
- }
- void VisitObjCIvarRefExpr(ObjCIvarRefExpr *Node) {
- Call(CXCursor_ObjCIvarRef, Node);
- }
-};
-#endif
-
// Translation Unit Visitor.
class TUVisitor : public DeclVisitor<TUVisitor> {