Bug 1373525 - toolkit/osfile: Remove unused constructor of ScopedArrayBufferContents. r=dteller
authorChris Peterson <cpeterson@mozilla.com>
Sat, 10 Jun 2017 16:40:56 -0700
changeset 414163 d0a00fa65e1d0df099a3b07160ae314455e5b5f3
parent 414162 1c091b62022cf895635b10fad4c71445a4f5637d
child 414164 373ed518250a9b8d8f3186eecb2ceef1bae2317d
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdteller
bugs1373525
milestone56.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 1373525 - toolkit/osfile: Remove unused constructor of ScopedArrayBufferContents. r=dteller toolkit/components/osfile/NativeOSFileInternals.cpp:98:12 [-Wunused-member-function] unused member function 'ScopedArrayBufferContents' MozReview-Commit-ID: 7OQH2RyX6xa
toolkit/components/osfile/NativeOSFileInternals.cpp
--- a/toolkit/components/osfile/NativeOSFileInternals.cpp
+++ b/toolkit/components/osfile/NativeOSFileInternals.cpp
@@ -90,20 +90,17 @@ struct ScopedArrayBufferContentsTraits {
     ptr.nbytes = 0;
   }
 };
 
 struct MOZ_NON_TEMPORARY_CLASS ScopedArrayBufferContents: public Scoped<ScopedArrayBufferContentsTraits> {
   explicit ScopedArrayBufferContents(MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM):
     Scoped<ScopedArrayBufferContentsTraits>(MOZ_GUARD_OBJECT_NOTIFIER_ONLY_PARAM_TO_PARENT)
   { }
-  explicit ScopedArrayBufferContents(const ArrayBufferContents& v
-                            MOZ_GUARD_OBJECT_NOTIFIER_PARAM):
-    Scoped<ScopedArrayBufferContentsTraits>(v MOZ_GUARD_OBJECT_NOTIFIER_PARAM_TO_PARENT)
-  { }
+
   ScopedArrayBufferContents& operator=(ArrayBufferContents ptr) {
     Scoped<ScopedArrayBufferContentsTraits>::operator=(ptr);
     return *this;
   }
 
   /**
    * Request memory for this ArrayBufferContent. This memory may later
    * be used to create an ArrayBuffer object (possibly on another
@@ -913,9 +910,8 @@ NativeOSFileInternalsService::Read(const
 
   if (NS_FAILED(rv)) {
     return rv;
   }
   return target->Dispatch(event, NS_DISPATCH_NORMAL);
 }
 
 } // namespace mozilla
-