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:
parent
3770d4df45
commit
6230147e73
|
@ -15,21 +15,6 @@
|
||||||
#include <yoga/Yoga.h>
|
#include <yoga/Yoga.h>
|
||||||
#include <yoga/YGNode.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 facebook {
|
||||||
namespace react {
|
namespace react {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue