From d0485b2f04ee1e10e84b2565d12534053726324b Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Thu, 13 Dec 2018 10:38:10 -0800 Subject: [PATCH] Don't use `default` in exhaustive switch Summary: @public removes the `default` case from an already exhaustive switch. Reviewed By: SidharthGuglani Differential Revision: D13451869 fbshipit-source-id: 32727330c7fce013963f5c83c95a73b230d5c938 --- ReactCommon/yoga/yoga/YGValue.h | 1 - 1 file changed, 1 deletion(-) diff --git a/ReactCommon/yoga/yoga/YGValue.h b/ReactCommon/yoga/yoga/YGValue.h index 4e43f7b2f43..59440be3ca5 100644 --- a/ReactCommon/yoga/yoga/YGValue.h +++ b/ReactCommon/yoga/yoga/YGValue.h @@ -44,7 +44,6 @@ inline bool operator==(const YGValue& lhs, const YGValue& rhs) { return true; case YGUnitPoint: case YGUnitPercent: - default: return lhs.value == rhs.value; } }