Bug 1344816: Remove unused 'this' variable lambda-captures from U2F.cpp. r=jcj
authorDaniel Holbert <dholbert@cs.stanford.edu>
Mon, 06 Mar 2017 11:05:46 -0800
changeset 346098 6e696aeb1bbf54711d504151ed4d00f22b2ab367
parent 346097 b83517442e4007dfe644b7fea14716dd3f6270b4
child 346099 ba253783b4324a7c294f09539e1e1fad443d9f3e
push id31459
push usercbook@mozilla.com
push dateTue, 07 Mar 2017 14:05:14 +0000
treeherdermozilla-central@1fb56ba248d5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjcj
bugs1344816
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1344816: Remove unused 'this' variable lambda-captures from U2F.cpp. r=jcj MozReview-Commit-ID: 8GL2Mb7n3GU
dom/u2f/U2F.cpp
--- a/dom/u2f/U2F.cpp
+++ b/dom/u2f/U2F.cpp
@@ -709,23 +709,23 @@ U2FRegisterRunnable::Run()
       RefPtr<U2FRegisterTask> registerTask = new U2FRegisterTask(mOrigin, mAppId,
                                                                  token, appParam,
                                                                  challengeParam,
                                                                  req,
                                                                  mAbstractMainThread);
       status->WaitGroupAdd();
 
       registerTask->Execute()->Then(mAbstractMainThread, __func__,
-        [&status, this] (nsString aResponse) {
+        [&status] (nsString aResponse) {
           if (!status->IsStopped()) {
             status->Stop(ErrorCode::OK, aResponse);
           }
           status->WaitGroupDone();
         },
-        [&status, this] (ErrorCode aErrorCode) {
+        [&status] (ErrorCode aErrorCode) {
           // Ignore the failing error code, as we only want the first success.
           // U2F devices don't provide much for error codes anyway, so if
           // they all fail we'll return DEVICE_INELIGIBLE.
           status->WaitGroupDone();
      });
     }
   }
 
@@ -895,23 +895,23 @@ U2FSignRunnable::Run()
       RefPtr<U2FSignTask> signTask = new U2FSignTask(mOrigin, mAppId,
                                                      key.mVersion, token,
                                                      appParam, challengeParam,
                                                      mClientData, keyHandle,
                                                      mAbstractMainThread);
       status->WaitGroupAdd();
 
       signTask->Execute()->Then(mAbstractMainThread, __func__,
-        [&status, this] (nsString aResponse) {
+        [&status] (nsString aResponse) {
           if (!status->IsStopped()) {
             status->Stop(ErrorCode::OK, aResponse);
           }
           status->WaitGroupDone();
         },
-        [&status, this] (ErrorCode aErrorCode) {
+        [&status] (ErrorCode aErrorCode) {
           // Ignore the failing error code, as we only want the first success.
           // U2F devices don't provide much for error codes anyway, so if
           // they all fail we'll return DEVICE_INELIGIBLE.
           status->WaitGroupDone();
       });
     }
   }