Bug 1304779 - Delete unused dom/indexedDB/ActorsParent.cpp copy constructors.
MozReview-Commit-ID: 4c5Y0QtQ5CS
--- a/dom/indexedDB/ActorsParent.cpp
+++ b/dom/indexedDB/ActorsParent.cpp
@@ -5616,32 +5616,32 @@ struct ConnectionPool::IdleResource
{
TimeStamp mIdleTime;
protected:
explicit
IdleResource(const TimeStamp& aIdleTime);
explicit
- IdleResource(const IdleResource& aOther);
+ IdleResource(const IdleResource& aOther) = delete;
~IdleResource();
};
struct ConnectionPool::IdleDatabaseInfo final
: public IdleResource
{
DatabaseInfo* mDatabaseInfo;
public:
MOZ_IMPLICIT
IdleDatabaseInfo(DatabaseInfo* aDatabaseInfo);
explicit
- IdleDatabaseInfo(const IdleDatabaseInfo& aOther);
+ IdleDatabaseInfo(const IdleDatabaseInfo& aOther) = delete;
~IdleDatabaseInfo();
bool
operator==(const IdleDatabaseInfo& aOther) const
{
return mDatabaseInfo == aOther.mDatabaseInfo;
}
@@ -5660,17 +5660,17 @@ struct ConnectionPool::IdleThreadInfo fi
public:
// Boo, this is needed because nsTArray::InsertElementSorted() doesn't yet
// work with rvalue references.
MOZ_IMPLICIT
IdleThreadInfo(const ThreadInfo& aThreadInfo);
explicit
- IdleThreadInfo(const IdleThreadInfo& aOther);
+ IdleThreadInfo(const IdleThreadInfo& aOther) = delete;
~IdleThreadInfo();
bool
operator==(const IdleThreadInfo& aOther) const
{
return mThreadInfo.mRunnable == aOther.mThreadInfo.mRunnable &&
mThreadInfo.mThread == aOther.mThreadInfo.mThread;
@@ -12965,26 +12965,16 @@ IdleResource::IdleResource(const TimeSta
{
AssertIsOnBackgroundThread();
MOZ_ASSERT(!aIdleTime.IsNull());
MOZ_COUNT_CTOR(ConnectionPool::IdleResource);
}
ConnectionPool::
-IdleResource::IdleResource(const IdleResource& aOther)
- : mIdleTime(aOther.mIdleTime)
-{
- AssertIsOnBackgroundThread();
- MOZ_ASSERT(!aOther.mIdleTime.IsNull());
-
- MOZ_COUNT_CTOR(ConnectionPool::IdleResource);
-}
-
-ConnectionPool::
IdleResource::~IdleResource()
{
AssertIsOnBackgroundThread();
MOZ_COUNT_DTOR(ConnectionPool::IdleResource);
}
ConnectionPool::
@@ -12997,27 +12987,16 @@ IdleDatabaseInfo::IdleDatabaseInfo(Datab
{
AssertIsOnBackgroundThread();
MOZ_ASSERT(aDatabaseInfo);
MOZ_COUNT_CTOR(ConnectionPool::IdleDatabaseInfo);
}
ConnectionPool::
-IdleDatabaseInfo::IdleDatabaseInfo(const IdleDatabaseInfo& aOther)
- : IdleResource(aOther)
- , mDatabaseInfo(aOther.mDatabaseInfo)
-{
- AssertIsOnBackgroundThread();
- MOZ_ASSERT(mDatabaseInfo);
-
- MOZ_COUNT_CTOR(ConnectionPool::IdleDatabaseInfo);
-}
-
-ConnectionPool::
IdleDatabaseInfo::~IdleDatabaseInfo()
{
AssertIsOnBackgroundThread();
MOZ_ASSERT(mDatabaseInfo);
MOZ_COUNT_DTOR(ConnectionPool::IdleDatabaseInfo);
}
@@ -13030,28 +13009,16 @@ IdleThreadInfo::IdleThreadInfo(const Thr
AssertIsOnBackgroundThread();
MOZ_ASSERT(aThreadInfo.mRunnable);
MOZ_ASSERT(aThreadInfo.mThread);
MOZ_COUNT_CTOR(ConnectionPool::IdleThreadInfo);
}
ConnectionPool::
-IdleThreadInfo::IdleThreadInfo(const IdleThreadInfo& aOther)
- : IdleResource(aOther)
- , mThreadInfo(aOther.mThreadInfo)
-{
- AssertIsOnBackgroundThread();
- MOZ_ASSERT(mThreadInfo.mRunnable);
- MOZ_ASSERT(mThreadInfo.mThread);
-
- MOZ_COUNT_CTOR(ConnectionPool::IdleThreadInfo);
-}
-
-ConnectionPool::
IdleThreadInfo::~IdleThreadInfo()
{
AssertIsOnBackgroundThread();
MOZ_COUNT_DTOR(ConnectionPool::IdleThreadInfo);
}
ConnectionPool::