[cfe-commits] r93586 - /cfe/trunk/tools/CIndex/CIndex.cpp
Ted Kremenek
kremenek at apple.com
Fri Jan 15 15:35:13 PST 2010
Author: kremenek
Date: Fri Jan 15 17:35:12 2010
New Revision: 93586
URL: http://llvm.org/viewvc/llvm-project?rev=93586&view=rev
Log:
Remove unused code.
Modified:
cfe/trunk/tools/CIndex/CIndex.cpp
Modified: cfe/trunk/tools/CIndex/CIndex.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/CIndex/CIndex.cpp?rev=93586&r1=93585&r2=93586&view=diff
==============================================================================
--- cfe/trunk/tools/CIndex/CIndex.cpp (original)
+++ cfe/trunk/tools/CIndex/CIndex.cpp Fri Jan 15 17:35:12 2010
@@ -130,42 +130,6 @@
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> {
More information about the cfe-commits
mailing list