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: db4c4d2bd222debef178c4c16f7b60fb6c8db2a2
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9e1b14cd9e
commit
a97dbecb49
@@ -10,27 +10,27 @@
|
||||
#include <yoga/Yoga.h>
|
||||
|
||||
static float _baselineFunc(
|
||||
YGNodeRef node,
|
||||
const float width,
|
||||
YGNodeRef /*node*/,
|
||||
const float /*width*/,
|
||||
const float height) {
|
||||
return height / 2;
|
||||
}
|
||||
|
||||
static YGSize _measure1(
|
||||
YGNodeRef node,
|
||||
float width,
|
||||
YGMeasureMode widthMode,
|
||||
float height,
|
||||
YGMeasureMode heightMode) {
|
||||
YGNodeRef /*node*/,
|
||||
float /*width*/,
|
||||
YGMeasureMode /*widthMode*/,
|
||||
float /*height*/,
|
||||
YGMeasureMode /*heightMode*/) {
|
||||
return YGSize{42, 50};
|
||||
}
|
||||
|
||||
static YGSize _measure2(
|
||||
YGNodeRef node,
|
||||
float width,
|
||||
YGMeasureMode widthMode,
|
||||
float height,
|
||||
YGMeasureMode heightMode) {
|
||||
YGNodeRef /*node*/,
|
||||
float /*width*/,
|
||||
YGMeasureMode /*widthMode*/,
|
||||
float /*height*/,
|
||||
YGMeasureMode /*heightMode*/) {
|
||||
return YGSize{279, 126};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user