remove unnecessary debug logs (#227)

This commit is contained in:
Atul R 2019-11-26 19:54:48 +01:00 committed by GitHub
parent 0b68f8586c
commit 6d13aa448f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,6 @@ void YogaWidget::setYDisplay(QString rawValue) {
int value = NodeStyle::NodeDisplay.at(rawDisplay);
YGNodeStyleSetDisplay(this->getFlexNode(), static_cast<YGDisplay>(value));
this->_yDisplay = rawValue;
qDebug() << "set display: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: display: " << rawValue;
}
@ -19,7 +18,6 @@ void YogaWidget::setYAlignItems(QString rawValue) {
int value = NodeStyle::NodeAlign.at(rawAlignItems);
YGNodeStyleSetAlignItems(this->getFlexNode(), static_cast<YGAlign>(value));
this->_yAlignItems = rawValue;
qDebug() << "set alignItems: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: alignItems: " << rawValue;
}
@ -31,7 +29,6 @@ void YogaWidget::setYAlignContent(QString rawValue) {
YGNodeStyleSetAlignContent(this->getFlexNode(),
static_cast<YGAlign>(value));
this->_yAlignContent = rawValue;
qDebug() << "set alignContent: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: alignContent: " << rawValue;
}
@ -42,7 +39,6 @@ void YogaWidget::setYAlignSelf(QString rawValue) {
int value = NodeStyle::NodeAlign.at(rawAlignSelf);
YGNodeStyleSetAlignSelf(this->getFlexNode(), static_cast<YGAlign>(value));
this->_yAlignSelf = rawValue;
qDebug() << "set alignSelf: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: alignSelf: " << rawValue;
}
@ -54,7 +50,6 @@ void YogaWidget::setYJustifyContent(QString rawValue) {
YGNodeStyleSetJustifyContent(this->getFlexNode(),
static_cast<YGJustify>(value));
this->_yJustifyContent = rawValue;
qDebug() << "set justifyContent: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: justifyContent: " << rawValue;
}
@ -66,7 +61,6 @@ void YogaWidget::setYDirection(QString rawValue) {
YGNodeStyleSetDirection(this->getFlexNode(),
static_cast<YGDirection>(value));
this->_yDirection = rawValue;
qDebug() << "set direction: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: direction: " << rawValue;
}
@ -78,7 +72,6 @@ void YogaWidget::setYFlexDirection(QString rawValue) {
YGNodeStyleSetFlexDirection(this->getFlexNode(),
static_cast<YGFlexDirection>(value));
this->_yFlexDirection = rawValue;
qDebug() << "set flexDirection: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: flexDirection: " << rawValue;
}
@ -89,7 +82,6 @@ void YogaWidget::setYOverflow(QString rawValue) {
int value = NodeStyle::NodeOverflow.at(rawOverflow);
YGNodeStyleSetOverflow(this->getFlexNode(), static_cast<YGOverflow>(value));
this->_yOverflow = rawValue;
qDebug() << "set overflow: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: overflow: " << rawValue;
}
@ -101,7 +93,6 @@ void YogaWidget::setYPosition(QString rawValue) {
YGNodeStyleSetPositionType(this->getFlexNode(),
static_cast<YGPositionType>(value));
this->_yPosition = rawValue;
qDebug() << "set positionType: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: positionType: " << rawValue;
}
@ -112,7 +103,6 @@ void YogaWidget::setYFlexWrap(QString rawValue) {
int value = NodeStyle::NodeWrap.at(rawFlexWrap);
YGNodeStyleSetFlexWrap(this->getFlexNode(), static_cast<YGWrap>(value));
this->_yFlexWrap = rawValue;
qDebug() << "set flexWrap: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: flexWrap: " << rawValue;
}
@ -121,7 +111,6 @@ void YogaWidget::setYFlex(float rawValue) {
try {
YGNodeStyleSetFlex(this->getFlexNode(), rawValue);
this->_yFlex = rawValue;
qDebug() << "set flex: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: flex: " << rawValue;
}
@ -130,7 +119,6 @@ void YogaWidget::setYFlexGrow(float rawValue) {
try {
YGNodeStyleSetFlexGrow(this->getFlexNode(), rawValue);
this->_yFlexGrow = rawValue;
qDebug() << "set flexGrow: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: flexGrow: " << rawValue;
}
@ -139,7 +127,6 @@ void YogaWidget::setYFlexShrink(float rawValue) {
try {
YGNodeStyleSetFlexShrink(this->getFlexNode(), rawValue);
this->_yFlexShrink = rawValue;
qDebug() << "set flexShrink: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: flexShrink: " << rawValue;
}
@ -148,7 +135,6 @@ void YogaWidget::setYAspectRatio(float rawValue) {
try {
YGNodeStyleSetAspectRatio(this->getFlexNode(), rawValue);
this->_yAspectRatio = rawValue;
qDebug() << "set aspectRatio: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: aspectRatio: " << rawValue;
}
@ -162,7 +148,6 @@ void YogaWidget::setYNodeTop(QString rawValue) {
: YGNodeStyleSetPosition(this->getFlexNode(), YGEdgeTop,
measurement.value);
this->_yTop = rawValue;
qDebug() << "set top: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: top: " << rawValue;
}
@ -176,7 +161,6 @@ void YogaWidget::setYNodeRight(QString rawValue) {
: YGNodeStyleSetPosition(this->getFlexNode(), YGEdgeRight,
measurement.value);
this->_yRight = rawValue;
qDebug() << "set right: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: right: " << rawValue;
}
@ -191,7 +175,6 @@ void YogaWidget::setYNodeBottom(QString rawValue) {
: YGNodeStyleSetPosition(this->getFlexNode(), YGEdgeBottom,
measurement.value);
this->_yBottom = rawValue;
qDebug() << "set bottom: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: bottom: " << rawValue;
}
@ -206,7 +189,6 @@ void YogaWidget::setYNodeLeft(QString rawValue) {
: YGNodeStyleSetPosition(this->getFlexNode(), YGEdgeLeft,
measurement.value);
this->_yLeft = rawValue;
qDebug() << "set left: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: left: " << rawValue;
}
@ -224,7 +206,6 @@ void YogaWidget::setYFlexBasis(QString rawValue) {
: YGNodeStyleSetFlexBasis(this->getFlexNode(), measurement.value);
}
this->_yFlexBasis = rawValue;
qDebug() << "set flexBasis: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: flexBasis: " << rawValue;
}
@ -237,7 +218,6 @@ void YogaWidget::setYMinWidth(QString rawValue) {
? YGNodeStyleSetMinWidthPercent(this->getFlexNode(), measurement.value)
: YGNodeStyleSetMinWidth(this->getFlexNode(), measurement.value);
this->_yMinWidth = rawValue;
qDebug() << "set minWidth: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: minWidth: " << rawValue;
}
@ -249,7 +229,6 @@ void YogaWidget::setYMinHeight(QString rawValue) {
? YGNodeStyleSetMinHeightPercent(this->getFlexNode(), measurement.value)
: YGNodeStyleSetMinHeight(this->getFlexNode(), measurement.value);
this->_yMinHeight = rawValue;
qDebug() << "set minHeight: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: minHeight: " << rawValue;
}
@ -261,7 +240,6 @@ void YogaWidget::setYWidth(QString rawValue) {
? YGNodeStyleSetWidthPercent(this->getFlexNode(), measurement.value)
: YGNodeStyleSetWidth(this->getFlexNode(), measurement.value);
this->_yWidth = rawValue;
qDebug() << "set yWidth: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: yWidth: " << rawValue;
}
@ -273,7 +251,6 @@ void YogaWidget::setYHeight(QString rawValue) {
? YGNodeStyleSetHeightPercent(this->getFlexNode(), measurement.value)
: YGNodeStyleSetHeight(this->getFlexNode(), measurement.value);
this->_yHeight = rawValue;
qDebug() << "set yHeight: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: yHeight: " << rawValue;
}
@ -285,7 +262,6 @@ void YogaWidget::setYMaxWidth(QString rawValue) {
? YGNodeStyleSetMaxWidthPercent(this->getFlexNode(), measurement.value)
: YGNodeStyleSetMaxWidth(this->getFlexNode(), measurement.value);
this->_yMaxWidth = rawValue;
qDebug() << "set maxWidth: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: maxWidth: " << rawValue;
}
@ -297,7 +273,6 @@ void YogaWidget::setYMaxHeight(QString rawValue) {
? YGNodeStyleSetMaxHeightPercent(this->getFlexNode(), measurement.value)
: YGNodeStyleSetMaxHeight(this->getFlexNode(), measurement.value);
this->_yMaxHeight = rawValue;
qDebug() << "set maxHeight: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: maxHeight: " << rawValue;
}
@ -311,7 +286,6 @@ void YogaWidget::setYPaddingTop(QString rawValue) {
: YGNodeStyleSetPadding(this->getFlexNode(), YGEdgeTop,
measurement.value);
this->_yPaddingTop = rawValue;
qDebug() << "set paddingTop: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: paddingTop: " << rawValue;
}
@ -325,7 +299,6 @@ void YogaWidget::setYPaddingRight(QString rawValue) {
: YGNodeStyleSetPadding(this->getFlexNode(), YGEdgeRight,
measurement.value);
this->_yPaddingRight = rawValue;
qDebug() << "set paddingRight: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: paddingRight: " << rawValue;
}
@ -339,7 +312,6 @@ void YogaWidget::setYPaddingBottom(QString rawValue) {
: YGNodeStyleSetPadding(this->getFlexNode(), YGEdgeBottom,
measurement.value);
this->_yPaddingBottom = rawValue;
qDebug() << "set paddingBottom: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: paddingBottom: " << rawValue;
}
@ -353,7 +325,6 @@ void YogaWidget::setYPaddingLeft(QString rawValue) {
: YGNodeStyleSetPadding(this->getFlexNode(), YGEdgeLeft,
measurement.value);
this->_yPaddingLeft = rawValue;
qDebug() << "set paddingLeft: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: paddingLeft: " << rawValue;
}
@ -367,7 +338,6 @@ void YogaWidget::setYPaddingHorizontal(QString rawValue) {
: YGNodeStyleSetPadding(this->getFlexNode(), YGEdgeHorizontal,
measurement.value);
this->_yPaddingHorizontal = rawValue;
qDebug() << "set paddingHorizontal: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: paddingHorizontal: " << rawValue;
}
@ -381,7 +351,6 @@ void YogaWidget::setYPaddingVertical(QString rawValue) {
: YGNodeStyleSetPadding(this->getFlexNode(), YGEdgeVertical,
measurement.value);
this->_yPaddingVertical = rawValue;
qDebug() << "set paddingVertical: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: paddingVertical: " << rawValue;
}
@ -395,7 +364,6 @@ void YogaWidget::setYPadding(QString rawValue) {
: YGNodeStyleSetPadding(this->getFlexNode(), YGEdgeAll,
measurement.value);
this->_yPadding = rawValue;
qDebug() << "set padding: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: padding: " << rawValue;
}
@ -409,7 +377,6 @@ void YogaWidget::setYMarginTop(QString rawValue) {
: YGNodeStyleSetMargin(this->getFlexNode(), YGEdgeTop,
measurement.value);
this->_yMarginTop = rawValue;
qDebug() << "set marginTop: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: marginTop: " << rawValue;
}
@ -423,7 +390,6 @@ void YogaWidget::setYMarginRight(QString rawValue) {
: YGNodeStyleSetMargin(this->getFlexNode(), YGEdgeRight,
measurement.value);
this->_yMarginRight = rawValue;
qDebug() << "set marginRight: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: marginRight: " << rawValue;
}
@ -437,7 +403,6 @@ void YogaWidget::setYMarginBottom(QString rawValue) {
: YGNodeStyleSetMargin(this->getFlexNode(), YGEdgeBottom,
measurement.value);
this->_yMarginBottom = rawValue;
qDebug() << "set marginBottom: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: marginBottom: " << rawValue;
}
@ -451,7 +416,6 @@ void YogaWidget::setYMarginLeft(QString rawValue) {
: YGNodeStyleSetMargin(this->getFlexNode(), YGEdgeLeft,
measurement.value);
this->_yMarginLeft = rawValue;
qDebug() << "set marginLeft: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: marginLeft: " << rawValue;
}
@ -465,7 +429,6 @@ void YogaWidget::setYMarginHorizontal(QString rawValue) {
: YGNodeStyleSetMargin(this->getFlexNode(), YGEdgeHorizontal,
measurement.value);
this->_yMarginHorizontal = rawValue;
qDebug() << "set marginHorizontal: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: marginHorizontal: " << rawValue;
}
@ -479,7 +442,6 @@ void YogaWidget::setYMarginVertical(QString rawValue) {
: YGNodeStyleSetMargin(this->getFlexNode(), YGEdgeVertical,
measurement.value);
this->_yMarginVertical = rawValue;
qDebug() << "set marginVertical: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: marginVertical: " << rawValue;
}
@ -493,7 +455,6 @@ void YogaWidget::setYMarginAll(QString rawValue) {
: YGNodeStyleSetMargin(this->getFlexNode(), YGEdgeAll,
measurement.value);
this->_yMargin = rawValue;
qDebug() << "set margin: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: margin: " << rawValue;
}
@ -503,7 +464,6 @@ void YogaWidget::setYBorderTop(float rawValue) {
try {
YGNodeStyleSetBorder(this->getFlexNode(), YGEdgeTop, rawValue);
this->_yBorderTop = rawValue;
qDebug() << "set borderTop: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: borderTop: " << rawValue;
}
@ -512,7 +472,6 @@ void YogaWidget::setYBorderRight(float rawValue) {
try {
YGNodeStyleSetBorder(this->getFlexNode(), YGEdgeRight, rawValue);
this->_yBorderRight = rawValue;
qDebug() << "set borderRight: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: borderRight: " << rawValue;
}
@ -521,7 +480,6 @@ void YogaWidget::setYBorderBottom(float rawValue) {
try {
YGNodeStyleSetBorder(this->getFlexNode(), YGEdgeBottom, rawValue);
this->_yBorderBottom = rawValue;
qDebug() << "set borderBottom: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: borderBottom: " << rawValue;
}
@ -530,7 +488,6 @@ void YogaWidget::setYBorderLeft(float rawValue) {
try {
YGNodeStyleSetBorder(this->getFlexNode(), YGEdgeLeft, rawValue);
this->_yBorderLeft = rawValue;
qDebug() << "set borderLeft: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: borderLeft: " << rawValue;
}
@ -539,7 +496,6 @@ void YogaWidget::setYBorderHorizontal(float rawValue) {
try {
YGNodeStyleSetBorder(this->getFlexNode(), YGEdgeHorizontal, rawValue);
this->_yBorderHorizontal = rawValue;
qDebug() << "set borderHorizontal: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: borderHorizontal: " << rawValue;
}
@ -548,7 +504,6 @@ void YogaWidget::setYBorderVertical(float rawValue) {
try {
YGNodeStyleSetBorder(this->getFlexNode(), YGEdgeVertical, rawValue);
this->_yBorderVertical = rawValue;
qDebug() << "set borderVertical: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: borderVertical: " << rawValue;
}
@ -558,7 +513,6 @@ void YogaWidget::setYBorder(float rawValue) {
try {
YGNodeStyleSetBorder(this->getFlexNode(), YGEdgeAll, rawValue);
this->_yBorder = rawValue;
qDebug() << "set border: " << rawValue;
} catch (...) {
qWarning() << "Invalid value: border: " << rawValue;
}