diff options
author | Gennadiy Civil <misterg@google.com> | 2019-08-15 17:34:09 -0400 |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2019-08-15 17:34:09 -0400 |
commit | 6aba4a5c45c03c2367c3390708c049fa8bc14487 (patch) | |
tree | e8f13ef4f0abb72d67361636dd21f7ee37cb5eec | |
parent | c16f57053ce6534e62d7bf07d1425da87f7193ec (diff) | |
parent | d51cce4fc7a5adc97ee4db9dd34163bf18df6cc8 (diff) | |
download | googletest-6aba4a5c45c03c2367c3390708c049fa8bc14487.tar.gz googletest-6aba4a5c45c03c2367c3390708c049fa8bc14487.tar.bz2 googletest-6aba4a5c45c03c2367c3390708c049fa8bc14487.zip |
Merge pull request #2382 from kuzkry:dead-metafunction
PiperOrigin-RevId: 263416977
-rw-r--r-- | googletest/include/gtest/internal/gtest-type-util.h | 12 | ||||
-rw-r--r-- | googletest/include/gtest/internal/gtest-type-util.h.pump | 12 |
2 files changed, 0 insertions, 24 deletions
diff --git a/googletest/include/gtest/internal/gtest-type-util.h b/googletest/include/gtest/internal/gtest-type-util.h index 5f9a0567..3d7542d1 100644 --- a/googletest/include/gtest/internal/gtest-type-util.h +++ b/googletest/include/gtest/internal/gtest-type-util.h @@ -105,18 +105,6 @@ std::string GetTypeName() { #if GTEST_HAS_TYPED_TEST || GTEST_HAS_TYPED_TEST_P -// AssertyTypeEq<T1, T2>::type is defined if T1 and T2 are the same -// type. This can be used as a compile-time assertion to ensure that -// two types are equal. - -template <typename T1, typename T2> -struct AssertTypeEq; - -template <typename T> -struct AssertTypeEq<T, T> { - typedef bool type; -}; - // A unique type used as the default value for the arguments of class // template Types. This allows us to simulate variadic templates // (e.g. Types<int>, Type<int, double>, and etc), which C++ doesn't diff --git a/googletest/include/gtest/internal/gtest-type-util.h.pump b/googletest/include/gtest/internal/gtest-type-util.h.pump index 3a3896bc..5e31b7b3 100644 --- a/googletest/include/gtest/internal/gtest-type-util.h.pump +++ b/googletest/include/gtest/internal/gtest-type-util.h.pump @@ -104,18 +104,6 @@ std::string GetTypeName() { #if GTEST_HAS_TYPED_TEST || GTEST_HAS_TYPED_TEST_P -// AssertyTypeEq<T1, T2>::type is defined if T1 and T2 are the same -// type. This can be used as a compile-time assertion to ensure that -// two types are equal. - -template <typename T1, typename T2> -struct AssertTypeEq; - -template <typename T> -struct AssertTypeEq<T, T> { - typedef bool type; -}; - // A unique type used as the default value for the arguments of class // template Types. This allows us to simulate variadic templates // (e.g. Types<int>, Type<int, double>, and etc), which C++ doesn't |