Fabric: Removing `SharedYogaStylableProps` and small codestyle changes

Summary: Trivial. We don't use it.

Reviewed By: sammy-SC

Differential Revision: D16139556

fbshipit-source-id: bac282c1aa228c10d27ebd636cf71fcc33b322e9
This commit is contained in:
Valentin Shergin 2019-07-08 21:07:21 -07:00 коммит произвёл Facebook Github Bot
Родитель 424f93022d
Коммит 2111f205ae
2 изменённых файлов: 8 добавлений и 12 удалений

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

@ -19,19 +19,19 @@
namespace facebook {
namespace react {
YogaStylableProps::YogaStylableProps(const YGStyle &yogaStyle)
YogaStylableProps::YogaStylableProps(YGStyle const &yogaStyle)
: yogaStyle(yogaStyle) {}
YogaStylableProps::YogaStylableProps(
const YogaStylableProps &sourceProps,
const RawProps &rawProps)
YogaStylableProps const &sourceProps,
RawProps const &rawProps)
: yogaStyle(convertRawProp(rawProps, sourceProps.yogaStyle)){};
#pragma mark - DebugStringConvertible
#if RN_DEBUG_STRING_CONVERTIBLE
SharedDebugStringConvertibleList YogaStylableProps::getDebugProps() const {
const auto defaultYogaStyle = YGStyle{};
auto const defaultYogaStyle = YGStyle{};
return {
debugStringConvertibleItem(
"direction", yogaStyle.direction(), defaultYogaStyle.direction()),

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

@ -15,23 +15,19 @@
namespace facebook {
namespace react {
class YogaStylableProps;
typedef std::shared_ptr<const YogaStylableProps> SharedYogaStylableProps;
class YogaStylableProps {
public:
YogaStylableProps() = default;
YogaStylableProps(const YGStyle &yogaStyle);
YogaStylableProps(YGStyle const &yogaStyle);
YogaStylableProps(
const YogaStylableProps &sourceProps,
const RawProps &rawProps);
YogaStylableProps const &sourceProps,
RawProps const &rawProps);
#pragma mark - Props
protected:
friend class YogaLayoutableShadowNode;
const YGStyle yogaStyle{};
YGStyle const yogaStyle{};
#if RN_DEBUG_STRING_CONVERTIBLE