Skip to content

refactor: cleanup Layer::get_sub_renddesc*() methods - #3455

Merged
ice0 merged 5 commits into
synfig:masterfrom
rodolforg:refactor-layer-get-sub-renddesc
Feb 1, 2025
Merged

ice0 merged 5 commits into
synfig:masterfrom
rodolforg:refactor-layer-get-sub-renddesc

Conversation

@rodolforg

Copy link
Copy Markdown
Contributor

Some were not override, other have useless parameters.

@rodolforg

rodolforg commented Nov 20, 2024 •

Copy link
Copy Markdown
Contributor Author

Reasoning on each commit.
You may squash them all, but keep the reasoning in the merged commit.

Also, these remaining methods will be deleted as soon as we remove accelerated_render

@rodolforg
rodolforg force-pushed the refactor-layer-get-sub-renddesc branch from 66e8bda to d26a8ab Compare November 22, 2024 09:29
@ice0

ice0 commented Jan 30, 2025

Copy link
Copy Markdown
Collaborator

Looks good, please rebase.

No actual Layer implementation override the method that takes a
second argument (a vector of renddesc for context)
The default value is always used in code
Nobody fills that vector of RendDesc with more than one item.
The vector is always initialized empty, and the filled with a
single item - and not in any loop that could push back more items.

Even it would have more than one item, only the first one pushed
would be used anyway.
@rodolforg
rodolforg force-pushed the refactor-layer-get-sub-renddesc branch from d26a8ab to e7f92d3 Compare January 30, 2025 16:40
@rodolforg

Copy link
Copy Markdown
Contributor Author

@ice0 rebased

@ice0
ice0 merged commit 0c08861 into synfig:master Feb 1, 2025
@ice0

ice0 commented Feb 1, 2025

Copy link
Copy Markdown
Collaborator

Merged. Thank you!

@rodolforg
rodolforg deleted the refactor-layer-get-sub-renddesc branch February 1, 2025 09:59
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.

2 participants