| Index: base/memory/ref_counted.cc
|
| diff --git a/base/memory/ref_counted.cc b/base/memory/ref_counted.cc
|
| index f85ba5e40afbd2cc2e29026f06e23febb2eca1ab..bc8bd5fd1a7c811cd98f9c364d5b9b9de02697d3 100644
|
| --- a/base/memory/ref_counted.cc
|
| +++ b/base/memory/ref_counted.cc
|
| @@ -28,31 +28,6 @@ RefCountedThreadSafeBase::~RefCountedThreadSafeBase() {
|
| #endif
|
| }
|
|
|
| -void RefCountedThreadSafeBase::AddRef() const {
|
| -#if DCHECK_IS_ON()
|
| - DCHECK(!in_dtor_);
|
| - DCHECK(!needs_adopt_ref_)
|
| - << "This RefCounted object is created with non-zero reference count."
|
| - << " The first reference to such a object has to be made by AdoptRef or"
|
| - << " MakeRefCounted.";
|
| -#endif
|
| - AtomicRefCountInc(&ref_count_);
|
| -}
|
| -
|
| -bool RefCountedThreadSafeBase::Release() const {
|
| -#if DCHECK_IS_ON()
|
| - DCHECK(!in_dtor_);
|
| - DCHECK(!AtomicRefCountIsZero(&ref_count_));
|
| -#endif
|
| - if (!AtomicRefCountDec(&ref_count_)) {
|
| -#if DCHECK_IS_ON()
|
| - in_dtor_ = true;
|
| -#endif
|
| - return true;
|
| - }
|
| - return false;
|
| -}
|
| -
|
| #if DCHECK_IS_ON()
|
| bool RefCountedBase::CalledOnValidSequence() const {
|
| return sequence_checker_.CalledOnValidSequence() ||
|
|
|