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

Merge redundant methods of update operations #2200

Merged
merged 5 commits into from
Feb 9, 2024
Merged

Merge redundant methods of update operations #2200

merged 5 commits into from
Feb 9, 2024

Conversation

hannobraun
Copy link
Owner

Update operations for all objects that reference multiple of another objects (for example cycles, which reference multiple half-edges) had two update methods per referenced type of object: The slightly more convenient update_* and the slightly more flexible replace_*.

I've decided this redundancy isn't worth it. I've merged all of those methods, taking the name from the update_* methods and the signature from the replace_* methods. This has resulted in slightly less convenient use sites, but more simplicity overall.

While not directly related to #2117, this came out of my continued experimentation with solutions for the issues I'm facing there.

@hannobraun hannobraun enabled auto-merge February 9, 2024 12:38
@hannobraun hannobraun merged commit 93c27fd into main Feb 9, 2024
4 checks passed
@hannobraun hannobraun deleted the update branch February 9, 2024 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant