Transform the Count enum values into private constants
Summary: Hides implementation details for the C, Objective-C and Swift APIs. Closes https://github.com/facebook/yoga/pull/292 Differential Revision: D4351523 Pulled By: emilsjolander fbshipit-source-id: 18a1149d169f0d52bd078714295000b5d07434dd
This commit is contained in:
committed by
Facebook Github Bot
parent
ed765fe508
commit
ff1a0e1eb8
@@ -133,8 +133,6 @@ static int YGAndroidLog(YGLogLevel level, const char *format, va_list args) {
|
||||
case YGLogLevelVerbose:
|
||||
androidLevel = ANDROID_LOG_VERBOSE;
|
||||
break;
|
||||
case YGLogLevelCount:
|
||||
break;
|
||||
}
|
||||
const int result = __android_log_vprint(androidLevel, "YG-layout", format, args);
|
||||
return result;
|
||||
@@ -951,8 +949,6 @@ static void YGConstrainMaxSizeForMode(const float maxSize, YGMeasureMode *mode,
|
||||
*size = maxSize;
|
||||
}
|
||||
break;
|
||||
case YGMeasureModeCount:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1968,7 +1964,6 @@ static void YGNodelayoutImpl(const YGNodeRef node,
|
||||
leadingMainDim = betweenMainDim / 2;
|
||||
break;
|
||||
case YGJustifyFlexStart:
|
||||
case YGJustifyCount:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2171,7 +2166,6 @@ static void YGNodelayoutImpl(const YGNodeRef node,
|
||||
break;
|
||||
case YGAlignAuto:
|
||||
case YGAlignFlexStart:
|
||||
case YGAlignCount:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2231,7 +2225,6 @@ static void YGNodelayoutImpl(const YGNodeRef node,
|
||||
break;
|
||||
}
|
||||
case YGAlignAuto:
|
||||
case YGAlignCount:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user