Apply fixes from clag-tidy misc-unused-parameters (#1293)

Summary:
Pull Request resolved: https://github.com/facebook/yoga/pull/1293

X-link: https://github.com/facebook/react-native/pull/37384

Gets the project mostly clean of `-Wunused-parameter`, part of `-Wextra`.

Reviewed By: yungsters

Differential Revision: D45772554

fbshipit-source-id: 14a146a777c0122c7d390797532d5b386203e5d9
This commit is contained in:
Nick Gerleman
2023-05-11 09:40:25 -07:00
committed by Facebook GitHub Bot
parent 9e1b14cd9e
commit 8053c871be
9 changed files with 139 additions and 127 deletions

View File

@@ -10,11 +10,11 @@
#include <yoga/Yoga.h>
static YGSize _measureFloor(
YGNodeRef node,
YGNodeRef /*node*/,
float width,
YGMeasureMode widthMode,
YGMeasureMode /*widthMode*/,
float height,
YGMeasureMode heightMode) {
YGMeasureMode /*heightMode*/) {
return YGSize{
width = 10.2f,
height = 10.2f,
@@ -22,11 +22,11 @@ static YGSize _measureFloor(
}
static YGSize _measureCeil(
YGNodeRef node,
YGNodeRef /*node*/,
float width,
YGMeasureMode widthMode,
YGMeasureMode /*widthMode*/,
float height,
YGMeasureMode heightMode) {
YGMeasureMode /*heightMode*/) {
return YGSize{
width = 10.5f,
height = 10.5f,
@@ -34,11 +34,11 @@ static YGSize _measureCeil(
}
static YGSize _measureFractial(
YGNodeRef node,
YGNodeRef /*node*/,
float width,
YGMeasureMode widthMode,
YGMeasureMode /*widthMode*/,
float height,
YGMeasureMode heightMode) {
YGMeasureMode /*heightMode*/) {
return YGSize{
width = 0.5f,
height = 0.5f,