diff --git a/packages/react-native/Libraries/FBLazyVector/FBLazyVector/FBLazyIterator.h b/packages/react-native/Libraries/FBLazyVector/FBLazyVector/FBLazyIterator.h index 65608d25da1..50387bad32c 100644 --- a/packages/react-native/Libraries/FBLazyVector/FBLazyVector/FBLazyIterator.h +++ b/packages/react-native/Libraries/FBLazyVector/FBLazyVector/FBLazyIterator.h @@ -116,12 +116,6 @@ LazyIterator operator+(typename LazyIterator::difference_type n, con return i + n; } -template -bool operator!=(const LazyIterator &a, const LazyIterator &b) -{ - return !(a == b); -} - template bool operator<=(const LazyIterator &a, const LazyIterator &b) { diff --git a/packages/react-native/ReactCommon/jsinspector-modern/UniqueMonostate.h b/packages/react-native/ReactCommon/jsinspector-modern/UniqueMonostate.h index 319ad9e63b6..215008cbaac 100644 --- a/packages/react-native/ReactCommon/jsinspector-modern/UniqueMonostate.h +++ b/packages/react-native/ReactCommon/jsinspector-modern/UniqueMonostate.h @@ -22,10 +22,6 @@ struct UniqueMonostate { { return true; } - constexpr bool operator!=(const UniqueMonostate & /*unused*/) const noexcept - { - return false; - } constexpr bool operator<(const UniqueMonostate & /*unused*/) const noexcept { return false; diff --git a/packages/react-native/ReactCommon/react/renderer/attributedstring/AttributedStringBox.cpp b/packages/react-native/ReactCommon/react/renderer/attributedstring/AttributedStringBox.cpp index 430f8d3ad6a..f20096e571e 100644 --- a/packages/react-native/ReactCommon/react/renderer/attributedstring/AttributedStringBox.cpp +++ b/packages/react-native/ReactCommon/react/renderer/attributedstring/AttributedStringBox.cpp @@ -79,10 +79,4 @@ bool operator==( } } -bool operator!=( - const AttributedStringBox& lhs, - const AttributedStringBox& rhs) { - return !(lhs == rhs); -} - } // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/renderer/attributedstring/AttributedStringBox.h b/packages/react-native/ReactCommon/react/renderer/attributedstring/AttributedStringBox.h index 02f037e8c92..f335dfde8af 100644 --- a/packages/react-native/ReactCommon/react/renderer/attributedstring/AttributedStringBox.h +++ b/packages/react-native/ReactCommon/react/renderer/attributedstring/AttributedStringBox.h @@ -58,7 +58,6 @@ class AttributedStringBox final { }; bool operator==(const AttributedStringBox &lhs, const AttributedStringBox &rhs); -bool operator!=(const AttributedStringBox &lhs, const AttributedStringBox &rhs); } // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.cpp b/packages/react-native/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.cpp index 87029ef120c..4eac922716f 100644 --- a/packages/react-native/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.cpp +++ b/packages/react-native/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.cpp @@ -36,10 +36,6 @@ bool ParagraphAttributes::operator==(const ParagraphAttributes& rhs) const { floatEquality(minimumFontScale, rhs.minimumFontScale); } -bool ParagraphAttributes::operator!=(const ParagraphAttributes& rhs) const { - return !(*this == rhs); -} - #pragma mark - DebugStringConvertible #if RN_DEBUG_STRING_CONVERTIBLE diff --git a/packages/react-native/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.h b/packages/react-native/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.h index c233c4d8f17..367ec8c3e0d 100644 --- a/packages/react-native/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.h +++ b/packages/react-native/ReactCommon/react/renderer/attributedstring/ParagraphAttributes.h @@ -83,7 +83,6 @@ class ParagraphAttributes : public DebugStringConvertible { std::optional textAlignVertical{}; bool operator==(const ParagraphAttributes &rhs) const; - bool operator!=(const ParagraphAttributes &rhs) const; #pragma mark - DebugStringConvertible diff --git a/packages/react-native/ReactCommon/react/renderer/components/scrollview/primitives.h b/packages/react-native/ReactCommon/react/renderer/components/scrollview/primitives.h index 32fdefb2e2f..d97dbfffdcd 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/scrollview/primitives.h +++ b/packages/react-native/ReactCommon/react/renderer/components/scrollview/primitives.h @@ -30,11 +30,6 @@ class ScrollViewMaintainVisibleContentPosition final { return std::tie(this->minIndexForVisible, this->autoscrollToTopThreshold) == std::tie(rhs.minIndexForVisible, rhs.autoscrollToTopThreshold); } - - bool operator!=(const ScrollViewMaintainVisibleContentPosition &rhs) const - { - return !(*this == rhs); - } }; } // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h b/packages/react-native/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h index ecb80cb4a8f..07452872140 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h +++ b/packages/react-native/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h @@ -56,11 +56,6 @@ inline static bool operator==(const AccessibilityAction &lhs, const Accessibilit return lhs.name == rhs.name && lhs.label == rhs.label; } -inline static bool operator!=(const AccessibilityAction &lhs, const AccessibilityAction &rhs) -{ - return !(rhs == lhs); -} - struct AccessibilityState { bool disabled{false}; bool selected{false}; @@ -76,11 +71,6 @@ constexpr bool operator==(const AccessibilityState &lhs, const AccessibilityStat lhs.busy == rhs.busy && lhs.expanded == rhs.expanded; } -constexpr bool operator!=(const AccessibilityState &lhs, const AccessibilityState &rhs) -{ - return !(rhs == lhs); -} - struct AccessibilityLabelledBy { std::vector value{}; }; @@ -90,11 +80,6 @@ inline static bool operator==(const AccessibilityLabelledBy &lhs, const Accessib return lhs.value == rhs.value; } -inline static bool operator!=(const AccessibilityLabelledBy &lhs, const AccessibilityLabelledBy &rhs) -{ - return !(lhs == rhs); -} - struct AccessibilityValue { std::optional min; std::optional max; @@ -107,11 +92,6 @@ constexpr bool operator==(const AccessibilityValue &lhs, const AccessibilityValu return lhs.min == rhs.min && lhs.max == rhs.max && lhs.now == rhs.now && lhs.text == rhs.text; } -constexpr bool operator!=(const AccessibilityValue &lhs, const AccessibilityValue &rhs) -{ - return !(rhs == lhs); -} - enum class ImportantForAccessibility : uint8_t { Auto, Yes, diff --git a/packages/react-native/ReactCommon/react/renderer/components/view/primitives.h b/packages/react-native/ReactCommon/react/renderer/components/view/primitives.h index a396579c234..e242eb7adec 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/view/primitives.h +++ b/packages/react-native/ReactCommon/react/renderer/components/view/primitives.h @@ -85,11 +85,6 @@ inline static bool operator==(const ViewEvents &lhs, const ViewEvents &rhs) return lhs.bits == rhs.bits; } -inline static bool operator!=(const ViewEvents &lhs, const ViewEvents &rhs) -{ - return lhs.bits != rhs.bits; -} - enum class BackfaceVisibility : uint8_t { Auto, Visible, Hidden }; enum class BorderCurve : uint8_t { Circular, Continuous }; @@ -212,11 +207,6 @@ struct CascadedRectangleEdges { rhs.blockStart, rhs.blockEnd); } - - bool operator!=(const CascadedRectangleEdges &rhs) const - { - return !(*this == rhs); - } }; template @@ -292,11 +282,6 @@ struct CascadedRectangleCorners { rhs.startEnd, rhs.startStart); } - - bool operator!=(const CascadedRectangleCorners &rhs) const - { - return !(*this == rhs); - } }; using BorderWidths = RectangleEdges; @@ -324,11 +309,6 @@ struct BorderMetrics { this->borderColors, this->borderWidths, this->borderRadii, this->borderCurves, this->borderStyles) == std::tie(rhs.borderColors, rhs.borderWidths, rhs.borderRadii, rhs.borderCurves, rhs.borderStyles); } - - bool operator!=(const BorderMetrics &rhs) const - { - return !(*this == rhs); - } }; } // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/renderer/core/LayoutConstraints.h b/packages/react-native/ReactCommon/react/renderer/core/LayoutConstraints.h index 9649c953eb0..a87af612f59 100644 --- a/packages/react-native/ReactCommon/react/renderer/core/LayoutConstraints.h +++ b/packages/react-native/ReactCommon/react/renderer/core/LayoutConstraints.h @@ -36,11 +36,6 @@ inline bool operator==(const LayoutConstraints &lhs, const LayoutConstraints &rh std::tie(rhs.minimumSize, rhs.maximumSize, rhs.layoutDirection); } -inline bool operator!=(const LayoutConstraints &lhs, const LayoutConstraints &rhs) -{ - return !(lhs == rhs); -} - } // namespace facebook::react namespace std { diff --git a/packages/react-native/ReactCommon/react/renderer/core/LayoutContext.h b/packages/react-native/ReactCommon/react/renderer/core/LayoutContext.h index c71d447be37..3709f7902e7 100644 --- a/packages/react-native/ReactCommon/react/renderer/core/LayoutContext.h +++ b/packages/react-native/ReactCommon/react/renderer/core/LayoutContext.h @@ -77,9 +77,4 @@ inline bool operator==(const LayoutContext &lhs, const LayoutContext &rhs) rhs.viewportOffset); } -inline bool operator!=(const LayoutContext &lhs, const LayoutContext &rhs) -{ - return !(lhs == rhs); -} - } // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/renderer/core/LayoutMetrics.h b/packages/react-native/ReactCommon/react/renderer/core/LayoutMetrics.h index 8be251aabf5..794f899eacb 100644 --- a/packages/react-native/ReactCommon/react/renderer/core/LayoutMetrics.h +++ b/packages/react-native/ReactCommon/react/renderer/core/LayoutMetrics.h @@ -86,8 +86,6 @@ struct LayoutMetrics { } bool operator==(const LayoutMetrics &rhs) const = default; - - bool operator!=(const LayoutMetrics &rhs) const = default; }; /* diff --git a/packages/react-native/ReactCommon/react/renderer/core/RawPropsKey.cpp b/packages/react-native/ReactCommon/react/renderer/core/RawPropsKey.cpp index d1c46ebcadd..01ac0f16617 100644 --- a/packages/react-native/ReactCommon/react/renderer/core/RawPropsKey.cpp +++ b/packages/react-native/ReactCommon/react/renderer/core/RawPropsKey.cpp @@ -59,8 +59,4 @@ bool operator==(const RawPropsKey& lhs, const RawPropsKey& rhs) noexcept { areFieldsEqual(lhs.suffix, rhs.suffix); } -bool operator!=(const RawPropsKey& lhs, const RawPropsKey& rhs) noexcept { - return !(lhs == rhs); -} - } // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/renderer/core/RawPropsKey.h b/packages/react-native/ReactCommon/react/renderer/core/RawPropsKey.h index de03c22035e..fefdf22525d 100644 --- a/packages/react-native/ReactCommon/react/renderer/core/RawPropsKey.h +++ b/packages/react-native/ReactCommon/react/renderer/core/RawPropsKey.h @@ -35,6 +35,5 @@ class RawPropsKey final { }; bool operator==(const RawPropsKey &lhs, const RawPropsKey &rhs) noexcept; -bool operator!=(const RawPropsKey &lhs, const RawPropsKey &rhs) noexcept; } // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/BackgroundPosition.h b/packages/react-native/ReactCommon/react/renderer/graphics/BackgroundPosition.h index 97292f4a764..37a2693896b 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/BackgroundPosition.h +++ b/packages/react-native/ReactCommon/react/renderer/graphics/BackgroundPosition.h @@ -21,7 +21,6 @@ struct BackgroundPosition { BackgroundPosition() : top(ValueUnit{0.0f, UnitType::Point}), left(ValueUnit{0.0f, UnitType::Point}) {} bool operator==(const BackgroundPosition &other) const = default; - bool operator!=(const BackgroundPosition &other) const = default; }; } // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/BackgroundRepeat.h b/packages/react-native/ReactCommon/react/renderer/graphics/BackgroundRepeat.h index c277bd80ff8..15edff00a40 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/BackgroundRepeat.h +++ b/packages/react-native/ReactCommon/react/renderer/graphics/BackgroundRepeat.h @@ -23,7 +23,6 @@ struct BackgroundRepeat { BackgroundRepeat() {} bool operator==(const BackgroundRepeat &other) const = default; - bool operator!=(const BackgroundRepeat &other) const = default; }; } // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/BackgroundSize.h b/packages/react-native/ReactCommon/react/renderer/graphics/BackgroundSize.h index 84af42a98ce..5b0f52cee7e 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/BackgroundSize.h +++ b/packages/react-native/ReactCommon/react/renderer/graphics/BackgroundSize.h @@ -28,7 +28,6 @@ struct BackgroundSizeLengthPercentage { } bool operator==(const BackgroundSizeLengthPercentage &other) const = default; - bool operator!=(const BackgroundSizeLengthPercentage &other) const = default; }; enum class BackgroundSizeKeyword { Cover, Contain }; diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/Point.h b/packages/react-native/ReactCommon/react/renderer/graphics/Point.h index 8a05b4d35d2..c9bf3297d0b 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/Point.h +++ b/packages/react-native/ReactCommon/react/renderer/graphics/Point.h @@ -64,8 +64,6 @@ struct Point { } inline bool operator==(const Point &rhs) const = default; - - inline bool operator!=(const Point &rhs) const = default; }; } // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/RadialGradient.h b/packages/react-native/ReactCommon/react/renderer/graphics/RadialGradient.h index 1d33dc40762..6a221785d6a 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/RadialGradient.h +++ b/packages/react-native/ReactCommon/react/renderer/graphics/RadialGradient.h @@ -36,11 +36,6 @@ struct RadialGradientSize { return x == other.x && y == other.y; } - bool operator!=(const Dimensions &other) const - { - return !(*this == other); - } - #ifdef RN_SERIALIZABLE_STATE folly::dynamic toDynamic() const; #endif @@ -53,11 +48,6 @@ struct RadialGradientSize { return value == other.value; } - bool operator!=(const RadialGradientSize &other) const - { - return !(*this == other); - } - #ifdef RN_SERIALIZABLE_STATE folly::dynamic toDynamic() const; #endif @@ -74,11 +64,6 @@ struct RadialGradientPosition { return top == other.top && left == other.left && right == other.right && bottom == other.bottom; } - bool operator!=(const RadialGradientPosition &other) const - { - return !(*this == other); - } - #ifdef RN_SERIALIZABLE_STATE folly::dynamic toDynamic() const; #endif @@ -94,10 +79,6 @@ struct RadialGradient { { return shape == other.shape && size == other.size && position == other.position && colorStops == other.colorStops; } - bool operator!=(const RadialGradient &other) const - { - return !(*this == other); - } #ifdef RN_SERIALIZABLE_STATE folly::dynamic toDynamic() const; diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/Rect.h b/packages/react-native/ReactCommon/react/renderer/graphics/Rect.h index 031f8537399..2f373343fe1 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/Rect.h +++ b/packages/react-native/ReactCommon/react/renderer/graphics/Rect.h @@ -29,11 +29,6 @@ struct Rect { return std::tie(this->origin, this->size) == std::tie(rhs.origin, rhs.size); } - bool operator!=(const Rect &rhs) const noexcept - { - return !(*this == rhs); - } - Float getMaxX() const noexcept { return size.width > 0 ? origin.x + size.width : origin.x; diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/RectangleCorners.h b/packages/react-native/ReactCommon/react/renderer/graphics/RectangleCorners.h index a46930baef6..88bf8799d97 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/RectangleCorners.h +++ b/packages/react-native/ReactCommon/react/renderer/graphics/RectangleCorners.h @@ -31,11 +31,6 @@ struct RectangleCorners { std::tie(rhs.topLeft, rhs.topRight, rhs.bottomLeft, rhs.bottomRight); } - bool operator!=(const RectangleCorners &rhs) const noexcept - { - return !(*this == rhs); - } - bool isUniform() const noexcept { return topLeft == topRight && topLeft == bottomLeft && topLeft == bottomRight; diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/RectangleEdges.h b/packages/react-native/ReactCommon/react/renderer/graphics/RectangleEdges.h index a46eb1a0189..da9461dacf6 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/RectangleEdges.h +++ b/packages/react-native/ReactCommon/react/renderer/graphics/RectangleEdges.h @@ -32,11 +32,6 @@ struct RectangleEdges { std::tie(rhs.left, rhs.top, rhs.right, rhs.bottom); } - bool operator!=(const RectangleEdges &rhs) const noexcept - { - return !(*this == rhs); - } - bool isUniform() const noexcept { return left == top && left == right && left == bottom; diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/Size.h b/packages/react-native/ReactCommon/react/renderer/graphics/Size.h index 7fef01f9ab7..bde0a19f0d2 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/Size.h +++ b/packages/react-native/ReactCommon/react/renderer/graphics/Size.h @@ -42,11 +42,6 @@ inline bool operator==(const Size &rhs, const Size &lhs) noexcept return std::tie(lhs.width, lhs.height) == std::tie(rhs.width, rhs.height); } -inline bool operator!=(const Size &rhs, const Size &lhs) noexcept -{ - return !(lhs == rhs); -} - } // namespace facebook::react namespace std { diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/Transform.cpp b/packages/react-native/ReactCommon/react/renderer/graphics/Transform.cpp index 024f15dfc8f..87f17b68c12 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/Transform.cpp +++ b/packages/react-native/ReactCommon/react/renderer/graphics/Transform.cpp @@ -356,10 +356,6 @@ bool Transform::operator==(const Transform& rhs) const noexcept { return true; } -bool Transform::operator!=(const Transform& rhs) const noexcept { - return !(*this == rhs); -} - Transform Transform::operator*(const Transform& rhs) const { if (*this == Transform::Identity()) { return rhs; diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/Transform.h b/packages/react-native/ReactCommon/react/renderer/graphics/Transform.h index 9ab250f2750..bced6bca883 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/Transform.h +++ b/packages/react-native/ReactCommon/react/renderer/graphics/Transform.h @@ -53,10 +53,6 @@ struct TransformOrigin { { return xy[0] == other.xy[0] && xy[1] == other.xy[1] && z == other.z; } - bool operator!=(const TransformOrigin &other) const - { - return !(*this == other); - } bool isSet() const { return xy[0].value != 0.0f || xy[0].unit != UnitType::Undefined || xy[1].value != 0.0f || @@ -157,7 +153,6 @@ struct Transform { * Equality operators. */ bool operator==(const Transform &rhs) const noexcept; - bool operator!=(const Transform &rhs) const noexcept; /* * Matrix subscript. diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/ValueUnit.h b/packages/react-native/ReactCommon/react/renderer/graphics/ValueUnit.h index 156d27abac6..8ce975ec411 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/ValueUnit.h +++ b/packages/react-native/ReactCommon/react/renderer/graphics/ValueUnit.h @@ -34,11 +34,6 @@ struct ValueUnit { return value == other.value && unit == other.unit; } - constexpr bool operator!=(const ValueUnit &other) const - { - return !(*this == other); - } - constexpr float resolve(float referenceLength) const { switch (unit) { diff --git a/packages/react-native/ReactCommon/react/renderer/imagemanager/platform/android/react/renderer/imagemanager/ImageRequestParams.h b/packages/react-native/ReactCommon/react/renderer/imagemanager/platform/android/react/renderer/imagemanager/ImageRequestParams.h index d32d6688931..1cb6170b557 100644 --- a/packages/react-native/ReactCommon/react/renderer/imagemanager/platform/android/react/renderer/imagemanager/ImageRequestParams.h +++ b/packages/react-native/ReactCommon/react/renderer/imagemanager/platform/android/react/renderer/imagemanager/ImageRequestParams.h @@ -93,11 +93,6 @@ class ImageRequestParams { rhs.analyticTag, rhs.size); } - - bool operator!=(const ImageRequestParams &rhs) const - { - return !(*this == rhs); - } }; struct ImageRequestItem { diff --git a/packages/react-native/ReactCommon/react/renderer/imagemanager/platform/cxx/react/renderer/imagemanager/ImageRequestParams.h b/packages/react-native/ReactCommon/react/renderer/imagemanager/platform/cxx/react/renderer/imagemanager/ImageRequestParams.h index 7c99c2be0aa..581d9b25221 100644 --- a/packages/react-native/ReactCommon/react/renderer/imagemanager/platform/cxx/react/renderer/imagemanager/ImageRequestParams.h +++ b/packages/react-native/ReactCommon/react/renderer/imagemanager/platform/cxx/react/renderer/imagemanager/ImageRequestParams.h @@ -22,11 +22,6 @@ class ImageRequestParams { { return this->blurRadius == rhs.blurRadius; } - - bool operator!=(const ImageRequestParams &rhs) const - { - return !(*this == rhs); - } }; } // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager/ImageRequestParams.h b/packages/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager/ImageRequestParams.h index f36da30bcf5..834facd115b 100644 --- a/packages/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager/ImageRequestParams.h +++ b/packages/react-native/ReactCommon/react/renderer/imagemanager/platform/ios/react/renderer/imagemanager/ImageRequestParams.h @@ -22,11 +22,6 @@ class ImageRequestParams { { return this->blurRadius == rhs.blurRadius; } - - bool operator!=(const ImageRequestParams &rhs) const - { - return !(*this == rhs); - } }; } // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/renderer/imagemanager/primitives.h b/packages/react-native/ReactCommon/react/renderer/imagemanager/primitives.h index 0bae06a4138..66407cdd6fb 100644 --- a/packages/react-native/ReactCommon/react/renderer/imagemanager/primitives.h +++ b/packages/react-native/ReactCommon/react/renderer/imagemanager/primitives.h @@ -39,11 +39,6 @@ class ImageSource { return std::tie(this->type, this->uri) == std::tie(rhs.type, rhs.uri); } - bool operator!=(const ImageSource &rhs) const - { - return !(*this == rhs); - } - #ifdef RN_SERIALIZABLE_STATE folly::dynamic toDynamic() const { diff --git a/packages/react-native/ReactCommon/react/renderer/mounting/ShadowView.cpp b/packages/react-native/ReactCommon/react/renderer/mounting/ShadowView.cpp index 0bd089b6943..d59525e8749 100644 --- a/packages/react-native/ReactCommon/react/renderer/mounting/ShadowView.cpp +++ b/packages/react-native/ReactCommon/react/renderer/mounting/ShadowView.cpp @@ -50,10 +50,6 @@ bool ShadowView::operator==(const ShadowView& rhs) const { rhs.state); } -bool ShadowView::operator!=(const ShadowView& rhs) const { - return !(*this == rhs); -} - #if RN_DEBUG_STRING_CONVERTIBLE std::string getDebugName(const ShadowView& object) { diff --git a/packages/react-native/ReactCommon/react/renderer/mounting/ShadowView.h b/packages/react-native/ReactCommon/react/renderer/mounting/ShadowView.h index b78b4cfeca1..d8b1031eb31 100644 --- a/packages/react-native/ReactCommon/react/renderer/mounting/ShadowView.h +++ b/packages/react-native/ReactCommon/react/renderer/mounting/ShadowView.h @@ -35,7 +35,6 @@ struct ShadowView final { ShadowView &operator=(ShadowView &&other) = default; bool operator==(const ShadowView &rhs) const; - bool operator!=(const ShadowView &rhs) const; ComponentName componentName{}; ComponentHandle componentHandle{}; diff --git a/packages/react-native/ReactCommon/react/renderer/mounting/internal/ShadowViewNodePair.h b/packages/react-native/ReactCommon/react/renderer/mounting/internal/ShadowViewNodePair.h index e32dc713202..c8f954deba1 100644 --- a/packages/react-native/ReactCommon/react/renderer/mounting/internal/ShadowViewNodePair.h +++ b/packages/react-native/ReactCommon/react/renderer/mounting/internal/ShadowViewNodePair.h @@ -51,11 +51,6 @@ struct ShadowViewNodePair final { return this->shadowNode == rhs.shadowNode; } - bool operator!=(const ShadowViewNodePair &rhs) const - { - return !(*this == rhs); - } - bool inOtherTree() const { return this->otherTreePair != nullptr; diff --git a/packages/react-native/ReactCommon/react/renderer/mounting/stubs/StubView.cpp b/packages/react-native/ReactCommon/react/renderer/mounting/stubs/StubView.cpp index 2075f046cb6..3fcbc6fef7b 100644 --- a/packages/react-native/ReactCommon/react/renderer/mounting/stubs/StubView.cpp +++ b/packages/react-native/ReactCommon/react/renderer/mounting/stubs/StubView.cpp @@ -59,10 +59,6 @@ bool operator==(const StubView& lhs, const StubView& rhs) { return true; } -bool operator!=(const StubView& lhs, const StubView& rhs) { - return !(lhs == rhs); -} - #if RN_DEBUG_STRING_CONVERTIBLE std::string getDebugName(const StubView& stubView) { diff --git a/packages/react-native/ReactCommon/react/renderer/mounting/stubs/StubView.h b/packages/react-native/ReactCommon/react/renderer/mounting/stubs/StubView.h index 690dd7353c6..0fad716a4df 100644 --- a/packages/react-native/ReactCommon/react/renderer/mounting/stubs/StubView.h +++ b/packages/react-native/ReactCommon/react/renderer/mounting/stubs/StubView.h @@ -44,7 +44,6 @@ class StubView final { }; bool operator==(const StubView &lhs, const StubView &rhs); -bool operator!=(const StubView &lhs, const StubView &rhs); #if RN_DEBUG_STRING_CONVERTIBLE diff --git a/packages/react-native/ReactCommon/react/renderer/mounting/stubs/StubViewTree.cpp b/packages/react-native/ReactCommon/react/renderer/mounting/stubs/StubViewTree.cpp index 1b919eab8ec..24e19640bf3 100644 --- a/packages/react-native/ReactCommon/react/renderer/mounting/stubs/StubViewTree.cpp +++ b/packages/react-native/ReactCommon/react/renderer/mounting/stubs/StubViewTree.cpp @@ -302,10 +302,6 @@ bool operator==(const StubViewTree& lhs, const StubViewTree& rhs) { return true; } -bool operator!=(const StubViewTree& lhs, const StubViewTree& rhs) { - return !(lhs == rhs); -} - void StubViewTree::recordMutation(const ShadowViewMutation& mutation) { switch (mutation.type) { case ShadowViewMutation::Create: { diff --git a/packages/react-native/ReactCommon/react/renderer/mounting/stubs/StubViewTree.h b/packages/react-native/ReactCommon/react/renderer/mounting/stubs/StubViewTree.h index f6e92cef4c0..58dd4f19b6f 100644 --- a/packages/react-native/ReactCommon/react/renderer/mounting/stubs/StubViewTree.h +++ b/packages/react-native/ReactCommon/react/renderer/mounting/stubs/StubViewTree.h @@ -52,7 +52,6 @@ class StubViewTree { std::vector mountingLogs_{}; friend bool operator==(const StubViewTree &lhs, const StubViewTree &rhs); - friend bool operator!=(const StubViewTree &lhs, const StubViewTree &rhs); std::ostream &dumpTags(std::ostream &stream) const; @@ -62,6 +61,5 @@ class StubViewTree { }; bool operator==(const StubViewTree &lhs, const StubViewTree &rhs); -bool operator!=(const StubViewTree &lhs, const StubViewTree &rhs); } // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/renderer/observers/intersection/IntersectionObserverState.cpp b/packages/react-native/ReactCommon/react/renderer/observers/intersection/IntersectionObserverState.cpp index 0f24030c584..ba862f3bac8 100644 --- a/packages/react-native/ReactCommon/react/renderer/observers/intersection/IntersectionObserverState.cpp +++ b/packages/react-native/ReactCommon/react/renderer/observers/intersection/IntersectionObserverState.cpp @@ -55,9 +55,4 @@ bool IntersectionObserverState::operator==( return threshold_ == other.threshold_ && rootThreshold_ == other.rootThreshold_; } - -bool IntersectionObserverState::operator!=( - const IntersectionObserverState& other) const { - return !(*this == other); -} } // namespace facebook::react diff --git a/packages/react-native/ReactCommon/react/renderer/observers/intersection/IntersectionObserverState.h b/packages/react-native/ReactCommon/react/renderer/observers/intersection/IntersectionObserverState.h index 14ba6c64237..610354f0504 100644 --- a/packages/react-native/ReactCommon/react/renderer/observers/intersection/IntersectionObserverState.h +++ b/packages/react-native/ReactCommon/react/renderer/observers/intersection/IntersectionObserverState.h @@ -30,7 +30,6 @@ class IntersectionObserverState { bool isIntersecting() const; bool operator==(const IntersectionObserverState &other) const; - bool operator!=(const IntersectionObserverState &other) const; private: explicit IntersectionObserverState(IntersectionObserverStateType state); diff --git a/packages/react-native/ReactCommon/yoga/yoga/YGValue.h b/packages/react-native/ReactCommon/yoga/yoga/YGValue.h index b7c4ba25f7b..138135229b9 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/YGValue.h +++ b/packages/react-native/ReactCommon/yoga/yoga/YGValue.h @@ -77,10 +77,6 @@ inline bool operator==(const YGValue& lhs, const YGValue& rhs) { } } -inline bool operator!=(const YGValue& lhs, const YGValue& rhs) { - return !(lhs == rhs); -} - inline YGValue operator-(const YGValue& value) { return {-value.value, value.unit}; } diff --git a/packages/react-native/ReactCommon/yoga/yoga/enums/YogaEnums.h b/packages/react-native/ReactCommon/yoga/yoga/enums/YogaEnums.h index de446621d51..521d9f7a322 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/enums/YogaEnums.h +++ b/packages/react-native/ReactCommon/yoga/yoga/enums/YogaEnums.h @@ -67,7 +67,6 @@ auto ordinals() { } bool operator==(const Iterator& other) const = default; - bool operator!=(const Iterator& other) const = default; }; struct Range { diff --git a/packages/react-native/ReactCommon/yoga/yoga/node/LayoutResults.h b/packages/react-native/ReactCommon/yoga/yoga/node/LayoutResults.h index 6776a423409..833dc927b29 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/node/LayoutResults.h +++ b/packages/react-native/ReactCommon/yoga/yoga/node/LayoutResults.h @@ -111,9 +111,6 @@ struct LayoutResults { } bool operator==(LayoutResults layout) const; - bool operator!=(LayoutResults layout) const { - return !(*this == layout); - } private: Direction direction_ : bitCount() = Direction::Inherit; diff --git a/packages/react-native/ReactCommon/yoga/yoga/numeric/FloatOptional.h b/packages/react-native/ReactCommon/yoga/yoga/numeric/FloatOptional.h index 4f2e5db92f8..c255277ae39 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/numeric/FloatOptional.h +++ b/packages/react-native/ReactCommon/yoga/yoga/numeric/FloatOptional.h @@ -44,23 +44,14 @@ constexpr bool operator==(FloatOptional lhs, FloatOptional rhs) { return lhs.unwrap() == rhs.unwrap() || (lhs.isUndefined() && rhs.isUndefined()); } -constexpr bool operator!=(FloatOptional lhs, FloatOptional rhs) { - return !(lhs == rhs); -} constexpr bool operator==(FloatOptional lhs, float rhs) { return lhs == FloatOptional{rhs}; } -constexpr bool operator!=(FloatOptional lhs, float rhs) { - return !(lhs == rhs); -} constexpr bool operator==(float lhs, FloatOptional rhs) { return rhs == lhs; } -constexpr bool operator!=(float lhs, FloatOptional rhs) { - return !(lhs == rhs); -} constexpr FloatOptional operator+(FloatOptional lhs, FloatOptional rhs) { return FloatOptional{lhs.unwrap() + rhs.unwrap()}; diff --git a/packages/react-native/ReactCommon/yoga/yoga/style/Style.h b/packages/react-native/ReactCommon/yoga/yoga/style/Style.h index 566b6934e69..bea3d379924 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/style/Style.h +++ b/packages/react-native/ReactCommon/yoga/yoga/style/Style.h @@ -548,10 +548,6 @@ class YG_EXPORT Style { numbersEqual(aspectRatio_, pool_, other.aspectRatio_, other.pool_); } - bool operator!=(const Style& other) const { - return !(*this == other); - } - private: using Dimensions = std::array()>; using Edges = std::array()>;