Skip to content

Commit

Permalink
Bug 1207245 - part 4 - remove RefPtr.h; r=ehsan
Browse files Browse the repository at this point in the history
It has been superseded by the availability of nsRefPtr.h.
  • Loading branch information
froydnj committed Oct 18, 2015
1 parent e2541f7 commit 4a21d99
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 225 deletions.
4 changes: 0 additions & 4 deletions mfbt/RefCounted.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@

namespace mozilla {

template<typename T> class RefPtr;

/**
* RefCounted<T> is a sort of a "mixin" for a class T. RefCounted
* manages, well, refcounting for T, and because RefCounted is
Expand Down Expand Up @@ -92,8 +90,6 @@ enum RefCountAtomicity
template<typename T, RefCountAtomicity Atomicity>
class RefCounted
{
friend class RefPtr<T>;

protected:
RefCounted() : mRefCnt(0) {}
~RefCounted() { MOZ_ASSERT(mRefCnt == detail::DEAD); }
Expand Down
210 changes: 0 additions & 210 deletions mfbt/RefPtr.h

This file was deleted.

1 change: 0 additions & 1 deletion mfbt/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ EXPORTS.mozilla = [
'RefCounted.h',
'RefCountType.h',
'ReentrancyGuard.h',
'RefPtr.h',
'ReverseIterator.h',
'RollingMean.h',
'Scoped.h',
Expand Down
10 changes: 0 additions & 10 deletions mfbt/nsRefPtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class nsCOMPtr_helper;

namespace mozilla {
template<class T> class OwningNonNull;
template<class T> class RefPtr;
} // namespace mozilla

template <class T>
Expand Down Expand Up @@ -128,10 +127,6 @@ class nsRefPtr
template<class U>
MOZ_IMPLICIT nsRefPtr(const mozilla::OwningNonNull<U>& aOther);

// Defined in RefPtr.h
template<class U>
MOZ_IMPLICIT nsRefPtr(mozilla::RefPtr<U>&& aOther);

// Assignment operators

nsRefPtr<T>&
Expand Down Expand Up @@ -192,11 +187,6 @@ class nsRefPtr
nsRefPtr<T>&
operator=(const mozilla::OwningNonNull<U>& aOther);

// Defined in RefPtr.h
template<class U>
nsRefPtr<T>&
operator=(mozilla::RefPtr<U>&& aOther);

// Other pointer operators

void
Expand Down

0 comments on commit 4a21d99

Please sign in to comment.