diff --git a/src/core/include/openvino/core/type.hpp b/src/core/include/openvino/core/type.hpp index 812208855fa7f3..b2f463e30c9ae1 100644 --- a/src/core/include/openvino/core/type.hpp +++ b/src/core/include/openvino/core/type.hpp @@ -77,10 +77,6 @@ struct OPENVINO_API DiscreteTypeInfo { OPENVINO_API std::ostream& operator<<(std::ostream& s, const DiscreteTypeInfo& info); -#if defined(__ANDROID__) || defined(ANDROID) -# define OPENVINO_DYNAMIC_CAST -#endif - /// \brief Tests if value is a pointer/shared_ptr that can be statically cast to a /// Type*/shared_ptr template @@ -97,11 +93,7 @@ template typename std::enable_if(std::declval())), Type*>::value, Type*>::type as_type(Value value) { -#ifdef OPENVINO_DYNAMIC_CAST - return ov::is_type(value) ? static_cast(value) : nullptr; -#else return dynamic_cast(value); -#endif } namespace util { @@ -122,11 +114,7 @@ struct AsTypePtr> { /// Type, nullptr otherwise template auto as_type_ptr(const U& value) -> decltype(::ov::util::AsTypePtr::template call(value)) { -#ifdef OPENVINO_DYNAMIC_CAST - return ::ov::util::AsTypePtr::template call(value); -#else return std::dynamic_pointer_cast(value); -#endif } } // namespace ov