diff --git a/icu4c/source/i18n/unicode/tmutfmt.h b/icu4c/source/i18n/unicode/tmutfmt.h index a3b0c53bd22..24ba906b5ea 100644 --- a/icu4c/source/i18n/unicode/tmutfmt.h +++ b/icu4c/source/i18n/unicode/tmutfmt.h @@ -134,23 +134,6 @@ public: */ TimeUnitFormat& operator=(const TimeUnitFormat& other); - /** - * Return true if the given Format objects are not semantically equal. - * Objects of different subclasses are considered unequal. - * @param other the object to be compared with. - * @return true if the given Format objects are not semantically equal. - * @deprecated ICU 53 - */ - bool operator!=(const Format& other) const; - -#if defined(__cpp_impl_three_way_comparison) && \ - __cpp_impl_three_way_comparison >= 201711 - // Manually resolve C++20 reversed argument order ambiguity. - inline bool operator!=(const TimeUnitFormat& other) const { - return operator!=(static_cast(other)); - } -#endif - /** * Set the locale used for formatting or parsing. * @param locale the locale to be set @@ -244,11 +227,6 @@ private: friend struct TimeUnitFormatReadSink; }; -inline bool -TimeUnitFormat::operator!=(const Format& other) const { - return !operator==(other); -} - U_NAMESPACE_END #endif /* U_HIDE_DEPRECATED_API */