Bug 1492014 remove unused aWorkletLoadInfo parameter to ExecutionRunnable() r=baku
authorKarl Tomlinson <karlt+@karlt.net>
Tue, 18 Sep 2018 09:36:41 +0000
changeset 487181 c6bb9f8bbaa3573e7d28e11fe4bf755ef962aac1
parent 487180 dc2b839f4e6863372fd67e229f808f4daf09891d
child 487182 8bfd0578ebaf1372d5470b95ba36e1facb4ec014
push id246
push userfmarier@mozilla.com
push dateSat, 13 Oct 2018 00:15:40 +0000
reviewersbaku
bugs1492014
milestone64.0a1
Bug 1492014 remove unused aWorkletLoadInfo parameter to ExecutionRunnable() r=baku Depends on D6099 Differential Revision: https://phabricator.services.mozilla.com/D6100
dom/worklet/Worklet.cpp
--- a/dom/worklet/Worklet.cpp
+++ b/dom/worklet/Worklet.cpp
@@ -28,18 +28,17 @@
 
 namespace mozilla {
 namespace dom {
 
 class ExecutionRunnable final : public Runnable
 {
 public:
   ExecutionRunnable(WorkletFetchHandler* aHandler, Worklet::WorkletType aType,
-                    JS::UniqueTwoByteChars aScriptBuffer, size_t aScriptLength,
-                    const WorkletLoadInfo& aWorkletLoadInfo)
+                    JS::UniqueTwoByteChars aScriptBuffer, size_t aScriptLength)
     : Runnable("Worklet::ExecutionRunnable")
     , mHandler(aHandler)
     , mScriptBuffer(std::move(aScriptBuffer))
     , mScriptLength(aScriptLength)
     , mWorkletType(aType)
     , mResult(NS_ERROR_FAILURE)
   {
     MOZ_ASSERT(NS_IsMainThread());
@@ -225,17 +224,17 @@ public:
     if (NS_WARN_IF(NS_FAILED(rv))) {
       RejectPromises(rv);
       return NS_OK;
     }
 
     // Moving the ownership of the buffer
     nsCOMPtr<nsIRunnable> runnable =
       new ExecutionRunnable(this, mWorklet->Type(), std::move(scriptTextBuf),
-                            scriptTextLength, mWorklet->LoadInfo());
+                            scriptTextLength);
 
     RefPtr<WorkletThread> thread = mWorklet->GetOrCreateThread();
     if (!thread) {
       RejectPromises(NS_ERROR_FAILURE);
       return NS_OK;
     }
 
     if (NS_FAILED(thread->DispatchRunnable(runnable.forget()))) {