aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock/include/gmock/gmock-generated-actions.h.pump
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2020-04-24 05:17:47 -0400
committerGennadiy Rozental <rogeeff@google.com>2020-05-01 17:11:34 -0400
commit955552518b4e0ad0249396e6885c0f18cd4ce529 (patch)
tree9a79bd65f70772fbbef632874d7ef233dd41ea4d /googlemock/include/gmock/gmock-generated-actions.h.pump
parentd7ca9af0049e5f33dbfcf0356ba5ee0c04579054 (diff)
downloadgoogletest-955552518b4e0ad0249396e6885c0f18cd4ce529.tar.gz
googletest-955552518b4e0ad0249396e6885c0f18cd4ce529.tar.bz2
googletest-955552518b4e0ad0249396e6885c0f18cd4ce529.zip
Googletest export
Rewrite ReturnNew action without using pump. PiperOrigin-RevId: 308219616
Diffstat (limited to 'googlemock/include/gmock/gmock-generated-actions.h.pump')
-rw-r--r--googlemock/include/gmock/gmock-generated-actions.h.pump18
1 files changed, 0 insertions, 18 deletions
diff --git a/googlemock/include/gmock/gmock-generated-actions.h.pump b/googlemock/include/gmock/gmock-generated-actions.h.pump
index be9d99fe..2137d8d6 100644
--- a/googlemock/include/gmock/gmock-generated-actions.h.pump
+++ b/googlemock/include/gmock/gmock-generated-actions.h.pump
@@ -344,24 +344,6 @@ ACTION_TEMPLATE(InvokeArgument,
]]
-// Various overloads for ReturnNew<T>().
-//
-// The ReturnNew<T>(a1, a2, ..., a_k) action returns a pointer to a new
-// instance of type T, constructed on the heap with constructor arguments
-// a1, a2, ..., and a_k. The caller assumes ownership of the returned value.
-$range i 0..n
-$for i [[
-$range j 0..i-1
-$var ps = [[$for j, [[p$j]]]]
-
-ACTION_TEMPLATE(ReturnNew,
- HAS_1_TEMPLATE_PARAMS(typename, T),
- AND_$i[[]]_VALUE_PARAMS($ps)) {
- return new T($ps);
-}
-
-]]
-
#ifdef _MSC_VER
# pragma warning(pop)
#endif