From 6230147e73ec7f9c88e7b6236cb8bea8c0a60475 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Sat, 4 Aug 2018 09:30:35 -0700 Subject: [PATCH] Fabric: Removed unnecessary `YGValue::operator==` Summary: @public We backported that into Yoga recently, so we don't need it here anymore. Reviewed By: mdvacca Differential Revision: D8988439 fbshipit-source-id: 01a538ff291e25d92eeb01b1fdee3a6868b2448b --- ReactCommon/fabric/components/view/conversions.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/ReactCommon/fabric/components/view/conversions.h b/ReactCommon/fabric/components/view/conversions.h index e34b65f1c..76dc48909 100644 --- a/ReactCommon/fabric/components/view/conversions.h +++ b/ReactCommon/fabric/components/view/conversions.h @@ -15,21 +15,6 @@ #include #include -// Yoga does not have this as part of the library, so we have to implement it -// here ouside of `facebook::react::` namespace. -inline bool operator==(const YGValue &lhs, const YGValue &rhs) { - if ( - (lhs.unit == YGUnitUndefined && rhs.unit == YGUnitUndefined) || - (lhs.unit == YGUnitAuto && rhs.unit == YGUnitAuto) - ) { - return true; - } - - return - lhs.unit == rhs.unit && - ((isnan(lhs.value) && isnan(rhs.value)) || (lhs.value == rhs.value)); -} - namespace facebook { namespace react {