Skip to content

Commit

Permalink
feat:clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
citizenll committed Aug 6, 2023
1 parent dc86f07 commit 0f8695c
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions src/flexbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,7 @@ static void globalDirtiedFunc(YGNodeRef nodeRef)

node.call_dirtied_func();
}
/* static */
// Flexbox *Flexbox::create()
// {
// return new Flexbox(nullptr);
// }
// /* static */
// Flexbox *Flexbox::createWithConfig(YGConfigRef *config)
// {
// return new Flexbox(config);
// }

// Flexbox::Flexbox(YGConfigRef *config)
// : m_node(
// config != nullptr ? YGNodeNewWithConfig(*config)
// : YGNodeNew()),
// m_measureFunc(nullptr),
// m_dirtiedFunc(nullptr)
// {
// YGNodeSetContext(m_node, reinterpret_cast<void *>(this));
// }
//

Flexbox::Flexbox()
{
m_node = YGNodeNew();
Expand Down

0 comments on commit 0f8695c

Please sign in to comment.