summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-09-04 18:19:08 +0000
committerChris Lattner <sabre@nondot.org>2010-09-04 18:19:08 +0000
commita3d232ad27db1ce7dacb236ad5f9eb21ee6a8f6b (patch)
tree87648533cb414efd1728f7be4c0d74848b3575e3
parent2f095c636a8fced04bc22f1340b31fa2ad6dc382 (diff)
downloadbcm5719-llvm-a3d232ad27db1ce7dacb236ad5f9eb21ee6a8f6b.tar.gz
bcm5719-llvm-a3d232ad27db1ce7dacb236ad5f9eb21ee6a8f6b.zip
zap more dead code.
llvm-svn: 113076
-rw-r--r--clang/lib/Rewrite/RewriteRope.cpp6
-rw-r--r--clang/lib/Sema/SemaLookup.cpp5
2 files changed, 4 insertions, 7 deletions
diff --git a/clang/lib/Rewrite/RewriteRope.cpp b/clang/lib/Rewrite/RewriteRope.cpp
index e2909218478..cfedd4b41fa 100644
--- a/clang/lib/Rewrite/RewriteRope.cpp
+++ b/clang/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/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp
index 306e95a497e..c6148ae3cd3 100644
--- a/clang/lib/Sema/SemaLookup.cpp
+++ b/clang/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(); }
OpenPOWER on IntegriCloud