diff options
author | Chris Lattner <sabre@nondot.org> | 2010-09-04 18:19:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-09-04 18:19:08 +0000 |
commit | 24dce6ef2f39d939eb8f01ef70eaa7dcdb8c6a62 (patch) | |
tree | a278658db57a1c746331784acd1d8689af56c24e | |
parent | 66392d4260cdd1a98f9ce908d99e3cf9a31432e2 (diff) |
zap more dead code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113076 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Rewrite/RewriteRope.cpp | 6 | ||||
-rw-r--r-- | lib/Sema/SemaLookup.cpp | 5 |
2 files changed, 4 insertions, 7 deletions
diff --git a/lib/Rewrite/RewriteRope.cpp b/lib/Rewrite/RewriteRope.cpp index e290921847..cfedd4b41f 100644 --- a/lib/Rewrite/RewriteRope.cpp +++ b/lib/Rewrite/RewriteRope.cpp @@ -119,7 +119,7 @@ namespace { /// 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 @@ namespace { /// 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 @@ namespace { /// 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(); } diff --git a/lib/Sema/SemaLookup.cpp b/lib/Sema/SemaLookup.cpp index 306e95a497..c6148ae3cd 100644 --- a/lib/Sema/SemaLookup.cpp +++ b/lib/Sema/SemaLookup.cpp @@ -183,11 +183,8 @@ namespace { 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 @@ public: 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(); } |