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
This commit is contained in:
Valentin Shergin 2018-08-04 09:30:35 -07:00 committed by Facebook Github Bot
parent 3770d4df45
commit 6230147e73
1 changed files with 0 additions and 15 deletions

View File

@ -15,21 +15,6 @@
#include <yoga/Yoga.h>
#include <yoga/YGNode.h>
// 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 {