Skip to content
Browse files

Remove a bit of debug code in folly::Range

Summary:
Seems like we can drop this, as the case that motivated
adding it wouldn't have been caught by it.

Test Plan: Compiled folly/test.

Reviewed By: tudorb@fb.com

FB internal diff: D684200
  • Loading branch information...
1 parent a60c864 commit d50ff184408886023433ace2f9d735277e350773 @jdelong jdelong committed Jan 20, 2013
Showing with 1 addition and 18 deletions.
  1. +1 −18 folly/Range.h
View
19 folly/Range.h
@@ -127,26 +127,9 @@ class Range : private boost::totally_ordered<Range<Iter> > {
Range() : b_(), e_() {
}
-private:
- static bool reachable(Iter b, Iter e, std::forward_iterator_tag) {
- for (; b != e; ++b) {
- LOG_EVERY_N(INFO, 100000) << __FILE__ ":" << __LINE__
- << " running reachability test ("
- << google::COUNTER << " iterations)...";
- }
- return true;
- }
-
- static bool reachable(Iter b, Iter e, std::random_access_iterator_tag) {
- return b <= e;
- }
-
public:
// Works for all iterators
- Range(Iter start, Iter end)
- : b_(start), e_(end) {
- assert(reachable(b_, e_,
- typename std::iterator_traits<Iter>::iterator_category()));
+ Range(Iter start, Iter end) : b_(start), e_(end) {
}
// Works only for random-access iterators

0 comments on commit d50ff18

Please sign in to comment.
Something went wrong with that request. Please try again.