Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused methods from the LayoutTree trait #425

Merged
merged 3 commits into from
Apr 10, 2023

Conversation

nicoburns
Copy link
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
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
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