Skip to content

refactor: remove unused CanvasInterface::auto_export() method - #3492

Merged
ice0 merged 1 commit into
synfig:masterfrom
rodolforg:remove-canvasinterface-autoexport
Feb 10, 2025
Merged

ice0 merged 1 commit into
synfig:masterfrom
rodolforg:remove-canvasinterface-autoexport

Conversation

@rodolforg

Copy link
Copy Markdown
Contributor

It is commented-out since initial commit in 2005.

It also removes the code on loading canvas that automatically deletes exported Value Nodes whose ID starts with "Unnamed". It can be safely removed because:

  1. this code slice also dates back 2005
  2. by using git grep Unnamed, it can be seen the only place that sets a valuenode ID as "Unnamed..." is the commented-out CanvasInterface::auto_export() this PR deletes.

It is commented-out since initial commit in 2005.

It also removes the code on loading canvas that automatically
deletes exported Value Nodes whose ID starts with "Unnamed".
It can be safely removed because:
1. this code slice also dates back 2005
2. by using `git grep Unnamed`, it can be seen the only place
that sets a valuenode ID as "Unnamed..." is the commented-out
CanvasInterface::auto_export() this PR deletes.
@github-actions

github-actions Bot commented Feb 9, 2025

Copy link
Copy Markdown

Thank you for contributing!
Below is how your contribution will appear in Synfig's release notes. Review it and improve your pull request's title and description so that your contribution is clear. You can add images, videos, and anything else you want. Have fun!

♻️ Code Refactoring

  • Remove unused CanvasInterface::auto_export() method

    It is commented-out since initial commit in 2005.

    It also removes the code on loading canvas that automatically deletes exported Value Nodes whose ID starts with "Unnamed". It can be safely removed because:

    1. this code slice also dates back 2005
    2. by using git grep Unnamed, it can be seen the only place that sets a valuenode ID as "Unnamed..." is the commented-out CanvasInterface::auto_export() this PR deletes.

@ice0
ice0 merged commit 927c829 into synfig:master Feb 10, 2025
@rodolforg
rodolforg deleted the remove-canvasinterface-autoexport branch February 10, 2025 08:31
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