On Tue, 2004-04-06 at 16:26, bulia byak wrote:
This makes no sense and can deleted. Also unused gradients etc.
Yes. That might be a good project for someone to take on. However I think it needs to wait until we streamline CSS properties handling, otherwise it will be very hard to do cleanly. CSS support is currently a mess (as you could notice when doing the stringstream patches - there are way too many places where properties are built on the spot with ugly printfs, without much care about cascading, defaults, etc.)
We also can't blindly delete unused gradients -- sometimes the user might want them preserved (e.g. because a downstream tool uses them, or because they are intended to be referenced from other SVG files).
It's probably better to provide some means to mark gradients or other SVG objects as "garbage-collectable" (e.g. an inkscape:gc-policy attribute?) -- new gradients and such created by Inkscape would be marked as collectable at first, though the user could mark them as permanent if they so chose.
That way, we wouldn't be deleting things against the users' will, but Inkscape could still automatically clean up after itself.
-mental