From bff76636df08bcbbc56c24d3db0613fa53367c82 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Thu, 13 Dec 2018 14:48:59 +0100 Subject: [PATCH] Remove unused code --- .../maya/publish/extract_pointcache.py | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/colorbleed/plugins/maya/publish/extract_pointcache.py b/colorbleed/plugins/maya/publish/extract_pointcache.py index dc8eabe7ac..1e3b4a2ea2 100644 --- a/colorbleed/plugins/maya/publish/extract_pointcache.py +++ b/colorbleed/plugins/maya/publish/extract_pointcache.py @@ -7,34 +7,6 @@ import colorbleed.api from colorbleed.maya.lib import extract_alembic -def iter_parents(node): - n = node.count("|") - for i in range(1, n): - yield node.rsplit("|", i)[0] - - -def get_highest_in_hierarchy(nodes): - """Return the highest in the hierachies from nodes - - This will return each highest node in separate hierarchies. - E.g. - get_highest_in_hierarchy(["|A|B|C", "A|B", "D|E"]) - # ["A|B", "D|E"] - - """ - # Ensure we use long names - nodes = cmds.ls(nodes, long=True) - lookup = set(nodes) - highest = [] - for node in nodes: - # If no parents are within the original list - # then this is a highest node - if not any(n in lookup for n in iter_parents(node)): - highest.append(node) - - return highest - - class ExtractColorbleedAlembic(colorbleed.api.Extractor): """Produce an alembic of just point positions and normals.