Bug 1367674. P2 - remove unused code. r=gerald
authorJW Wang <jwwang@mozilla.com>
Thu, 25 May 2017 15:42:35 +0800
changeset 409181 02d43f8e8686d0b754f15e1b409366c0378ad591
parent 409180 6dea98f4fbc27f19c3ab909bf9976b566236df1e
child 409182 0e10c59e3bb6a59605af70599628d7e68dda7af3
push id7391
push usermtabara@mozilla.com
push dateMon, 12 Jun 2017 13:08:53 +0000
treeherdermozilla-beta@2191d7f87e2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgerald
bugs1367674
milestone55.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 1367674. P2 - remove unused code. r=gerald MozReview-Commit-ID: 5OHWP5rpiff
xpcom/threads/MozPromise.h
--- a/xpcom/threads/MozPromise.h
+++ b/xpcom/threads/MozPromise.h
@@ -66,40 +66,16 @@ struct MethodTraitsHelper<Ret(ThisType::
   using ReturnType = Ret;
   static const size_t ArgSize = sizeof...(ArgTypes);
 };
 template <typename T>
 struct MethodTrait : MethodTraitsHelper<typename RemoveReference<T>::Type>
 {
 };
 
-template<typename ThisType, typename Ret, typename ArgType>
-static TrueType TakesArgumentHelper(Ret (ThisType::*)(ArgType));
-template<typename ThisType, typename Ret, typename ArgType>
-static TrueType TakesArgumentHelper(Ret (ThisType::*)(ArgType) const);
-template<typename ThisType, typename Ret>
-static FalseType TakesArgumentHelper(Ret (ThisType::*)());
-template<typename ThisType, typename Ret>
-static FalseType TakesArgumentHelper(Ret (ThisType::*)() const);
-
-template<typename ThisType, typename Ret, typename ArgType>
-static Ret ReturnTypeHelper(Ret (ThisType::*)(ArgType));
-template<typename ThisType, typename Ret, typename ArgType>
-static Ret ReturnTypeHelper(Ret (ThisType::*)(ArgType) const);
-template<typename ThisType, typename Ret>
-static Ret ReturnTypeHelper(Ret (ThisType::*)());
-template<typename ThisType, typename Ret>
-static Ret ReturnTypeHelper(Ret (ThisType::*)() const);
-
-template<typename MethodType>
-struct ReturnType
-{
-  using Type = typename MethodTrait<MethodType>::ReturnType;
-};
-
 } // namespace detail
 
 template<typename MethodType>
 using TakesArgument =
   IntegralConstant<bool, detail::MethodTrait<MethodType>::ArgSize != 0>;
 
 template<typename MethodType, typename TargetType>
 using ReturnTypeIs =