Allow redex to optimize more of yoga by removing unneeded @DoNotStrip marks

Summary:
There are multiple `DoNotStrip` in Yoga java binding, they aren't needed.

##Changelog:
[Internal][Yoga] Allow redex to optimize more of yoga by removing unneeded DoNotStrip marks

Reviewed By: SidharthGuglani

Differential Revision: D17519844

fbshipit-source-id: 8b26800d720f34cae87754d85460abf88acbe713
This commit is contained in:
Amir Shalem
2019-12-04 01:32:14 -08:00
committed by Facebook Github Bot
parent 089095f532
commit 7f97e8b232
19 changed files with 1 additions and 56 deletions

View File

@@ -7,9 +7,6 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public enum YogaAlign {
AUTO(0),
FLEX_START(1),

View File

@@ -7,14 +7,10 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public interface YogaBaselineFunction {
/**
* Return the baseline of the node in points. When no baseline function is set the baseline
* default to the computed height of the node.
*/
@DoNotStrip
float baseline(YogaNode node, float width, float height);
}

View File

@@ -7,9 +7,6 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public enum YogaDimension {
WIDTH(0),
HEIGHT(1);

View File

@@ -7,9 +7,6 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public enum YogaDirection {
INHERIT(0),
LTR(1),

View File

@@ -7,9 +7,6 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public enum YogaDisplay {
FLEX(0),
NONE(1);

View File

@@ -7,9 +7,6 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public enum YogaEdge {
LEFT(0),
TOP(1),

View File

@@ -7,9 +7,6 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public enum YogaExperimentalFeature {
WEB_FLEX_BASIS(0);

View File

@@ -7,9 +7,6 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public enum YogaFlexDirection {
COLUMN(0),
COLUMN_REVERSE(1),

View File

@@ -7,9 +7,6 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public enum YogaJustify {
FLEX_START(0),
CENTER(1),

View File

@@ -28,6 +28,7 @@ public enum YogaLogLevel {
return mIntValue;
}
@DoNotStrip
public static YogaLogLevel fromInt(int value) {
switch (value) {
case 0: return ERROR;

View File

@@ -7,14 +7,10 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public interface YogaMeasureFunction {
/**
* Return a value created by YogaMeasureOutput.make(width, height);
*/
@DoNotStrip
long measure(
YogaNode node,
float width,

View File

@@ -7,9 +7,6 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public enum YogaMeasureMode {
UNDEFINED(0),
EXACTLY(1),

View File

@@ -7,9 +7,6 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public enum YogaNodeType {
DEFAULT(0),
TEXT(1);

View File

@@ -7,9 +7,6 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public enum YogaOverflow {
VISIBLE(0),
HIDDEN(1),

View File

@@ -7,9 +7,6 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public enum YogaPositionType {
RELATIVE(0),
ABSOLUTE(1);

View File

@@ -7,9 +7,6 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public enum YogaPrintOptions {
LAYOUT(1),
STYLE(2),

View File

@@ -7,9 +7,6 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public class YogaStyleInputs {
public static final short LAYOUT_DIRECTION = 0;
public static final short FLEX_DIRECTION = 1;

View File

@@ -7,9 +7,6 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public enum YogaUnit {
UNDEFINED(0),
POINT(1),

View File

@@ -7,9 +7,6 @@
package com.facebook.yoga;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public enum YogaWrap {
NO_WRAP(0),
WRAP(1),