scour/scour
Niels Thykier c0c9a9c2c1 Remove an unnecessary loop
The unprotected_ids function returns all unprotected ids and
removeUnreferencedIDs removes all of them that does not appear in the
return value of findReferencedElements.

On closer observation it turns out that removeUnreferencedIDs cannot
cause nodes/IDs to become unprotected nor unreferenced (as it only
remove the "id" attribute, not the node).  With this in mind, we can
just remove the loop and save a call to all of these functions.

Signed-off-by: Niels Thykier <niels@thykier.net>
2018-02-17 17:44:51 +00:00
..
__init__.py Scour v0.36 2017-08-06 04:55:59 +02:00
scour.py Remove an unnecessary loop 2018-02-17 17:44:51 +00:00
svg_regex.py Some whitespace fixes to make newer versions of flake8 happy 2016-11-27 18:52:39 +01:00
svg_transform.py Some whitespace fixes to make newer versions of flake8 happy 2016-11-27 18:52:39 +01:00
yocto_css.py Consistent whitespace across source files according to PEP 8 2016-09-15 00:35:13 +02:00