Summary:
EZ cleanup of unused variables in TextLayoutManager
changelog: [internal] internal

Reviewed By: JoshuaGross

Differential Revision: D28015819

fbshipit-source-id: 8e380926ebff9256e89e6cd654fa96eeb938d797
This commit is contained in:
David Vacca 2021-04-27 19:43:56 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 4c5182c1cc
Коммит 3178e80c88
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -375,10 +375,6 @@ public class TextLayoutManager {
}
BoringLayout.Metrics boring = BoringLayout.isBoring(text, textPaint);
float desiredWidth = boring == null ? Layout.getDesiredWidth(text, textPaint) : Float.NaN;
// technically, width should never be negative, but there is currently a bug in
boolean unconstrainedWidth = widthYogaMeasureMode == YogaMeasureMode.UNDEFINED || width < 0;
Layout layout =
createLayout(