From 81d29884fcba6f4904108f5e13a0a1df65eded3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20=C3=85gren?= Date: Sun, 17 Jul 2022 17:39:20 +0200 Subject: [PATCH] Remove dead code --- src/Mod/Path/PathScripts/PathSelection.py | 47 +++-------------------- 1 file changed, 6 insertions(+), 41 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathSelection.py b/src/Mod/Path/PathScripts/PathSelection.py index 37bec946fe..4cdf61bef9 100644 --- a/src/Mod/Path/PathScripts/PathSelection.py +++ b/src/Mod/Path/PathScripts/PathSelection.py @@ -133,11 +133,9 @@ class DRILLGate(PathBaseGate): return drillableLib.isDrillable(shape, subobj, vector=None) -class FACEGate( - PathBaseGate -): # formerly PROFILEGate class using allow_ORIG method as allow() +class FACEGate(PathBaseGate): def allow(self, doc, obj, sub): - profileable = False + isFace = False try: obj = obj.Shape @@ -146,49 +144,16 @@ class FACEGate( if obj.ShapeType == "Compound": if sub and sub[0:4] == "Face": - profileable = True + isFace = True elif obj.ShapeType == "Face": # 3D Face, not flat, planar? - profileable = True # Was False + isFace = True elif obj.ShapeType == "Solid": if sub and sub[0:4] == "Face": - profileable = True + isFace = True - return profileable - - def allow_ORIG(self, doc, obj, sub): - - profileable = False - try: - obj = obj.Shape - except Exception: - return False - - if obj.ShapeType == "Edge": - profileable = False - - elif obj.ShapeType == "Compound": - if sub and sub[0:4] == "Face": - profileable = True - - if sub and sub[0:4] == "Edge": - profileable = False - - elif obj.ShapeType == "Face": - profileable = False - - elif obj.ShapeType == "Solid": - if sub and sub[0:4] == "Face": - profileable = True - - if sub and sub[0:4] == "Edge": - profileable = False - - elif obj.ShapeType == "Wire": - profileable = False - - return profileable + return isFace class PROFILEGate(PathBaseGate):