VariadicHelper::Result should not include constructor to initialize members
authornael.ouedraogo@crf.canon.fr <nael.ouedraogo@crf.canon.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Sep 2016 06:44:04 +0000 (06:44 +0000)
committernael.ouedraogo@crf.canon.fr <nael.ouedraogo@crf.canon.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Sep 2016 06:44:04 +0000 (06:44 +0000)
https://bugs.webkit.org/show_bug.cgi?id=162298

Reviewed by Darin Adler.

Remove the constructor since member-wise initialization does the same thing.

No new tests required.

* bindings/js/JSDOMBinding.h: Remove useless constructor.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@206199 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/bindings/js/JSDOMBinding.h

index 4a97a1a..bbe03c2 100644 (file)
@@ -1,3 +1,16 @@
+2016-09-20  Nael Ouedraogo  <nael.ouedraogo@crf.canon.fr>
+
+        VariadicHelper::Result should not include constructor to initialize members
+        https://bugs.webkit.org/show_bug.cgi?id=162298
+
+        Reviewed by Darin Adler.
+
+        Remove the constructor since member-wise initialization does the same thing.
+
+        No new tests required.
+
+        * bindings/js/JSDOMBinding.h: Remove useless constructor.
+
 2016-09-20  Alex Christensen  <achristensen@webkit.org>
 
         Optimize URLParser
index 47a2aaa..27bbb26 100644 (file)
@@ -358,11 +358,6 @@ struct VariadicHelper : public VariadicHelperBase<JSClass, DOMClass> {
     using Container = Vector<Item>;
 
     struct Result {
-        Result(size_t argumentIndex, Optional<Container>&& arguments)
-            : argumentIndex(argumentIndex)
-            , arguments(WTFMove(arguments))
-        {
-        }
         size_t argumentIndex;
         Optional<Container> arguments;
     };