mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
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:
parent
c0d253195d
commit
fa7dea9295
@ -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(¤t)) && current;
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
AssertIsOnOwningThread() const
|
||||
|
1
dom/cache/DBSchema.cpp
vendored
1
dom/cache/DBSchema.cpp
vendored
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user