From 096fb37a1976bbddde136c9db5fa88ac4332b802 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Fri, 14 Dec 2018 15:24:21 -0500 Subject: Googletest export Replace pump'd code for DoAll with variadic templates. PiperOrigin-RevId: 225584656 --- .../include/gmock/gmock-generated-actions.h.pump | 28 ---------------------- 1 file changed, 28 deletions(-) (limited to 'googlemock/include/gmock/gmock-generated-actions.h.pump') diff --git a/googlemock/include/gmock/gmock-generated-actions.h.pump b/googlemock/include/gmock/gmock-generated-actions.h.pump index d38b1f92..27c96efc 100644 --- a/googlemock/include/gmock/gmock-generated-actions.h.pump +++ b/googlemock/include/gmock/gmock-generated-actions.h.pump @@ -165,34 +165,6 @@ $template }; } // namespace internal - -// Creates an action that does actions a1, a2, ..., sequentially in -// each invocation. -$range i 2..n -$for i [[ -$range j 2..i -$var types = [[$for j, [[typename Action$j]]]] -$var Aas = [[$for j [[, Action$j a$j]]]] - -template -$range k 1..i-1 - -inline $for k [[internal::DoBothAction]] - -DoAll(Action1 a1$Aas) { -$if i==2 [[ - - return internal::DoBothAction(a1, a2); -]] $else [[ -$range j2 2..i - - return DoAll(a1, DoAll($for j2, [[a$j2]])); -]] - -} - -]] - } // namespace testing // The ACTION* family of macros can be used in a namespace scope to -- cgit v1.2.3