diff options
author | Jose <jose@zeroc.com> | 2016-01-12 16:40:59 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-01-12 16:40:59 +0100 |
commit | 1b8d9e18f823303906bf8ca02fb503f1d7db0c81 (patch) | |
tree | 1390b1741789e3d13ae0f4f0e51d7954f16f0016 /cpp | |
parent | C++ Consistent usage of public virtual (diff) | |
download | ice-1b8d9e18f823303906bf8ca02fb503f1d7db0c81.tar.bz2 ice-1b8d9e18f823303906bf8ca02fb503f1d7db0c81.tar.xz ice-1b8d9e18f823303906bf8ca02fb503f1d7db0c81.zip |
remove unused isKind template
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/include/Ice/Traits.h | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/cpp/include/Ice/Traits.h b/cpp/include/Ice/Traits.h index e81cffdeaa1..f1e2cb50401 100644 --- a/cpp/include/Ice/Traits.h +++ b/cpp/include/Ice/Traits.h @@ -1,3 +1,4 @@ + #ifndef ICE_TRAITS_H #define ICE_TRAITS_H @@ -14,31 +15,6 @@ class Value; template<class T> using IsProxy = ::std::is_base_of<::Ice::ObjectPrx, T>; template<class T> using IsValue = ::std::is_base_of<::Ice::Value, T>; -enum class Kind { Value, Proxy }; - -template<typename T> -struct TypeTraits -{ - constexpr static bool isKind(Kind kind) - { - switch(kind) - { - case Kind::Value: - { - return std::is_base_of<Value, T>::value; - } - case Kind::Proxy: - { - return std::is_base_of<ObjectPrx, T>::value; - } - default: - { - return false; - } - } - } -}; - } #endif |