Skip to content

Remove unused methods from the LayoutTree trait#425

Merged
nicoburns merged 3 commits intoDioxusLabs:mainfrom
nicoburns:remove-unused-layouttree-methods
Apr 10, 2023
Merged

Remove unused methods from the LayoutTree trait#425
nicoburns merged 3 commits intoDioxusLabs:mainfrom
nicoburns:remove-unused-layouttree-methods

Conversation

@nicoburns
Copy link
Copy Markdown
Collaborator

Objective

The idea is to make the LayoutTree trait as minimal as possible to make it easy to implement.

Removes:

  • parent (unused)
  • mark_dirty (make method on Taffy struct public)
  • is_childless (use child_count instead)
  • layout (use &Taffy instead of &LayoutTree for debug printing)

Context

Split out from #326.

Feedback wanted

General PR review.

Removes:
- parent (unused)
- mark_dirty (make method on Taffy struct public)
- is_childless (use child_count instead)
- layout (use &Taffy instead of &LayoutTree for debug printing)
@nicoburns nicoburns added usability Make the library more comfortable to use code quality Make the code cleaner or prettier. breaking-change A change that breaks our public interface labels Apr 10, 2023
Copy link
Copy Markdown
Collaborator

@Weibye Weibye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! This should have an entry in the RELEASES.md?

@nicoburns
Copy link
Copy Markdown
Collaborator Author

@Weibye Entry added to RELEASES.md (and formatting issues fixed)

@nicoburns nicoburns requested a review from Weibye April 10, 2023 15:40
@nicoburns nicoburns merged commit 2ef49c4 into DioxusLabs:main Apr 10, 2023
@nicoburns nicoburns deleted the remove-unused-layouttree-methods branch April 10, 2023 15:52
@nicoburns nicoburns mentioned this pull request Apr 10, 2023
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change A change that breaks our public interface code quality Make the code cleaner or prettier. usability Make the library more comfortable to use

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants