Bug 1373525 - dom: Remove some unused member functions. r=billm

dom/asmjscache/AsmJSCache.cpp:371:3 [-Wunused-member-function] unused member function 'IsOnOwningThread'
dom/cache/DBSchema.cpp:303:3 [-Wunused-member-function] unused member function 'IdCount'
dom/filesystem/GetFilesHelper.cpp:26:3 [-Wunused-member-function] unused member function 'ReleaseRunnable'
dom/webbrowserpersist/WebBrowserPersistLocalDocument.cpp:298:10 [-Wunused-member-function] unused member function 'IsFlagSet'

MozReview-Commit-ID: 2A11iqF7u9X

--HG--
extra : source : abc07611c7cc994685cf151a47c90e3e9d3712a1
extra : intermediate-source : 44a7cfc31d995c50846aec3050514aea70ba2e2f
extra : histedit_source : 2ed361299e763d969619d3916ff20d9553d620f2
This commit is contained in:
Chris Peterson 2017-06-11 15:34:21 -07:00
parent c0d253195d
commit fa7dea9295
4 changed files with 3 additions and 10 deletions

View File

@ -367,6 +367,7 @@ private:
MOZ_ASSERT(mActorDestroyed);
}
#ifdef DEBUG
bool
IsOnOwningThread() const
{
@ -375,6 +376,7 @@ private:
bool current;
return NS_SUCCEEDED(mOwningEventTarget->IsOnCurrentThread(&current)) && current;
}
#endif
void
AssertIsOnOwningThread() const

View File

@ -300,7 +300,6 @@ typedef int32_t EntryId;
struct IdCount
{
IdCount() : mId(-1), mCount(0) { }
explicit IdCount(int32_t aId) : mId(aId), mCount(1) { }
int32_t mId;
int32_t mCount;

View File

@ -23,10 +23,6 @@ namespace {
class ReleaseRunnable final : public Runnable
{
public:
ReleaseRunnable()
: Runnable("ReleaseRunnable")
{}
static void
MaybeReleaseOnMainThread(nsTArray<RefPtr<Promise>>& aPromises,
nsTArray<RefPtr<GetFilesCallback>>& aCallbacks,
@ -61,6 +57,7 @@ private:
nsTArray<RefPtr<GetFilesCallback>>& aCallbacks,
Sequence<RefPtr<File>>& aFiles,
already_AddRefed<nsIGlobalObject> aGlobal)
: Runnable("ReleaseRunnable")
{
mPromises.SwapElements(aPromises);
mCallbacks.SwapElements(aCallbacks);

View File

@ -255,7 +255,6 @@ WebBrowserPersistLocalDocument::GetBaseURI() const
return mDocument->GetBaseURI();
}
namespace {
// Helper class for ReadResources().
@ -295,10 +294,6 @@ private:
const char* aNamespaceURI = "");
nsresult OnWalkSubframe(nsIDOMNode* aNode);
bool IsFlagSet(uint32_t aFlag) const {
return mParent->GetPersistFlags() & aFlag;
}
~ResourceReader();
using IWBP = nsIWebBrowserPersist;