[cfe-commits] r113076 - in /cfe/trunk/lib: Rewrite/RewriteRope.cpp Sema/SemaLookup.cpp

Chris Lattner sabre at nondot.org
Sat Sep 4 11:19:08 PDT 2010


Author: lattner
Date: Sat Sep  4 13:19:08 2010
New Revision: 113076

URL: http://llvm.org/viewvc/llvm-project?rev=113076&view=rev
Log:
zap more dead code.

Modified:
    cfe/trunk/lib/Rewrite/RewriteRope.cpp
    cfe/trunk/lib/Sema/SemaLookup.cpp

Modified: cfe/trunk/lib/Rewrite/RewriteRope.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/RewriteRope.cpp?rev=113076&r1=113075&r2=113076&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/RewriteRope.cpp (original)
+++ cfe/trunk/lib/Rewrite/RewriteRope.cpp Sat Sep  4 13:19:08 2010
@@ -119,7 +119,7 @@
     /// guaranteed that there is a split at Offset.
     void erase(unsigned Offset, unsigned NumBytes);
 
-    static inline bool classof(const RopePieceBTreeNode *) { return true; }
+    //static inline bool classof(const RopePieceBTreeNode *) { return true; }
 
   };
 } // end anonymous namespace
@@ -223,7 +223,7 @@
     /// guaranteed that there is a split at Offset.
     void erase(unsigned Offset, unsigned NumBytes);
 
-    static inline bool classof(const RopePieceBTreeLeaf *) { return true; }
+    //static inline bool classof(const RopePieceBTreeLeaf *) { return true; }
     static inline bool classof(const RopePieceBTreeNode *N) {
       return N->isLeaf();
     }
@@ -455,7 +455,7 @@
     /// guaranteed that there is a split at Offset.
     void erase(unsigned Offset, unsigned NumBytes);
 
-    static inline bool classof(const RopePieceBTreeInterior *) { return true; }
+    //static inline bool classof(const RopePieceBTreeInterior *) { return true; }
     static inline bool classof(const RopePieceBTreeNode *N) {
       return !N->isLeaf();
     }

Modified: cfe/trunk/lib/Sema/SemaLookup.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaLookup.cpp?rev=113076&r1=113075&r2=113076&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaLookup.cpp (original)
+++ cfe/trunk/lib/Sema/SemaLookup.cpp Sat Sep  4 13:19:08 2010
@@ -183,11 +183,8 @@
       std::sort(list.begin(), list.end(), UnqualUsingEntry::Comparator());
     }
 
-    typedef ListTy::iterator iterator;
     typedef ListTy::const_iterator const_iterator;
     
-    iterator begin() { return list.begin(); }
-    iterator end() { return list.end(); }
     const_iterator begin() const { return list.begin(); }
     const_iterator end() const { return list.end(); }
 
@@ -2707,7 +2704,7 @@
   typedef llvm::SmallVector<IdentifierInfo *, 4>::const_iterator
     keyword_iterator;
   keyword_iterator keyword_begin() const { return BestKeywords.begin(); }
-  keyword_iterator keyword_end() const { return BestKeywords.end(); }
+  //keyword_iterator keyword_end() const { return BestKeywords.end(); }
   bool keyword_empty() const { return BestKeywords.empty(); }
   unsigned keyword_size() const { return BestKeywords.size(); }
   





More information about the cfe-commits mailing list