summaryrefslogtreecommitdiffstats
path: root/googlemock/include/gmock/internal
diff options
context:
space:
mode:
authorGennadiy Civil <misterg@google.com>2019-08-27 20:59:59 (GMT)
committerGennadiy Civil <misterg@google.com>2019-08-27 20:59:59 (GMT)
commitfdd6a1dc8c74bf37211c14a1b2e4b64755bb3380 (patch)
treee715b911578e831d7a3fdf46bbf2bdbece4fafc3 /googlemock/include/gmock/internal
parent6a3d632f40a1882cb09aeefa767f0fdf1f61c80e (diff)
parent44de8697835d3ff94bfb10fbf71060b93f23aca2 (diff)
downloadgoogletest-fdd6a1dc8c74bf37211c14a1b2e4b64755bb3380.zip
googletest-fdd6a1dc8c74bf37211c14a1b2e4b64755bb3380.tar.gz
googletest-fdd6a1dc8c74bf37211c14a1b2e4b64755bb3380.tar.bz2
Merge pull request #2382 from kuzkry:dead-metafunction
PiperOrigin-RevId: 265730482
Diffstat (limited to 'googlemock/include/gmock/internal')
-rw-r--r--googlemock/include/gmock/internal/gmock-internal-utils.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/googlemock/include/gmock/internal/gmock-internal-utils.h b/googlemock/include/gmock/internal/gmock-internal-utils.h
index cea8ef6..1770d5e 100644
--- a/googlemock/include/gmock/internal/gmock-internal-utils.h
+++ b/googlemock/include/gmock/internal/gmock-internal-utils.h
@@ -340,19 +340,6 @@ GTEST_API_ WithoutMatchers GetWithoutMatchers();
template <typename T> struct remove_reference { typedef T type; }; // NOLINT
template <typename T> struct remove_reference<T&> { typedef T type; }; // NOLINT
-// DecayArray<T>::type turns an array type U[N] to const U* and preserves
-// other types. Useful for saving a copy of a function argument.
-template <typename T> struct DecayArray { typedef T type; }; // NOLINT
-template <typename T, size_t N> struct DecayArray<T[N]> {
- typedef const T* type;
-};
-// Sometimes people use arrays whose size is not available at the use site
-// (e.g. extern const char kNamePrefix[]). This specialization covers that
-// case.
-template <typename T> struct DecayArray<T[]> {
- typedef const T* type;
-};
-
// Disable MSVC warnings for infinite recursion, since in this case the
// the recursion is unreachable.
#ifdef _MSC_VER