From 33650efbe8e4c97086775fc7a83a4cf909ffb075 Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Sat, 24 Jul 2021 10:59:43 -0500 Subject: [PATCH] Path: Delete dead code and comments --- src/Mod/Path/PathTests/TestPathAdaptive.py | 85 ---------------------- 1 file changed, 85 deletions(-) diff --git a/src/Mod/Path/PathTests/TestPathAdaptive.py b/src/Mod/Path/PathTests/TestPathAdaptive.py index 56ccf52f88..96185ec192 100644 --- a/src/Mod/Path/PathTests/TestPathAdaptive.py +++ b/src/Mod/Path/PathTests/TestPathAdaptive.py @@ -46,10 +46,6 @@ class TestPathAdaptive(PathTestBase): ''' # Create a new document and create test geometry - # doc_title = "TestAdaptive" - # doc = FreeCAD.newDocument(doc_title) - # cls._createTestGeometry(doc) - # Open existing document with test geometry doc = FreeCAD.open(FreeCAD.getHomePath() + 'Mod/Path/PathTests/test_adaptive.fcstd') @@ -83,28 +79,6 @@ class TestPathAdaptive(PathTestBase): else: FreeCAD.closeDocument(FreeCAD.ActiveDocument.Name) - @staticmethod - def _createTestGeometry(doc): - '''_createTestGeometry(doc)... - This contains the instructions to create test geometry for the unit tests in this class. - A simple example creation is provided. - ''' - - # Create a square donut - box0 = doc.addObject('Part::Box', 'Box0') # Box - box0.Length = 50.0 - box0.Width = 50.0 - box0.Height = 10.0 - box1 = doc.addObject('Part::Box', 'Box1') # Box001 - box1.Length = 10.0 # X - box1.Width = 10.0 # Y - box1.Height = 20.0 # Z - box1.Placement = FreeCAD.Placement(FreeCAD.Vector(10.0, 10.0, -5.0), FreeCAD.Rotation(FreeCAD.Vector(0,0,1), 0)) - cut0 = doc.addObject('Part::Cut', 'Cut0') - cut0.Base = box0 - cut0.Tool = box1 - doc.recompute() - # Setup and tear down methods called before and after each unit test def setUp(self): '''setUp()... @@ -461,7 +435,6 @@ def pathOriginatesInBox(cmd, minPoint, maxPoint): return False - def _addViewProvider(adaptiveOp): if FreeCAD.GuiUp: PathOpGui = PathAdaptiveGui.PathOpGui @@ -484,61 +457,3 @@ G1 X17.5 Y20.0 Z5.0; \ G1 X32.5 Y20.0 Z5.0; \ G1 X32.5 Y17.5 Z5.0; \ G1 X17.5 Y17.5 Z5.0" - -expected_moves_test02 = "G1 X22.5 Y-17.5 Z15.0; \ -G1 X22.5 Y-22.5 Z15.0; \ -G1 X17.5 Y-22.5 Z15.0; \ -G1 X17.5 Y-17.5 Z15.0; \ -G1 X22.5 Y-17.5 Z15.0; \ -G1 X21.25 Y-18.75 Z15.0; \ -G1 X21.25 Y-21.25 Z15.0; \ -G1 X18.75 Y-21.25 Z15.0; \ -G1 X18.75 Y-18.75 Z15.0; \ -G1 X21.25 Y-18.75 Z15.0" - -expected_moves_test03 = "G1 X32.5 Y-22.5 Z5.0; \ -G1 X32.5 Y-22.76 Z5.0; \ -G3 I2.4 J-12.0 K0.0 X27.5 Y-25.01 Z5.0; \ -G1 X27.5 Y-25.0 Z5.0; \ -G1 X27.5 Y-22.5 Z5.0; \ -G1 X32.5 Y-22.5 Z5.0; \ -G1 X25.02 Y-27.5 Z5.0; \ -G3 I9.66 J-7.36 K0.0 X22.76 Y-32.5 Z5.0; \ -G1 X22.5 Y-32.5 Z5.0; \ -G1 X22.5 Y-27.5 Z5.0; \ -G1 X25.0 Y-27.5 Z5.0; \ -G1 X25.02 Y-27.5 Z5.0" - -expected_moves_test04 = "G1 X25.0 Y-15.0 Z15.0; \ -G1 X15.0 Y-15.0 Z15.0; \ -G1 X15.0 Y-25.0 Z15.0; \ -G1 X25.0 Y-25.0 Z15.0; \ -G1 X25.0 Y-22.5 Z15.0; \ -G1 X22.5 Y-22.5 Z15.0; \ -G1 X22.5 Y-17.5 Z15.0; \ -G1 X17.5 Y-17.5 Z15.0; \ -G1 X17.5 Y-22.5 Z15.0; \ -G1 X22.5 Y-22.5 Z15.0; \ -G1 X25.0 Y-22.5 Z15.0; \ -G1 X25.0 Y-15.0 Z15.0" - -expected_moves_test05 = "G1 X32.5 Y32.5 Z5.0; \ -G1 X32.5 Y17.5 Z5.0; \ -G1 X17.5 Y17.5 Z5.0; \ -G1 X17.5 Y32.5 Z5.0; \ -G1 X32.5 Y32.5 Z5.0; \ -G1 X30.0 Y30.0 Z5.0; \ -G1 X30.0 Y20.0 Z5.0; \ -G1 X20.0 Y20.0 Z5.0; \ -G1 X20.0 Y30.0 Z5.0; \ -G1 X30.0 Y30.0 Z5.0; \ -G1 X27.5 Y27.5 Z5.0; \ -G1 X27.5 Y22.5 Z5.0; \ -G1 X22.5 Y22.5 Z5.0; \ -G1 X22.5 Y27.5 Z5.0; \ -G1 X27.5 Y27.5 Z5.0; \ -G1 X26.25 Y26.25 Z5.0; \ -G1 X26.25 Y23.75 Z5.0; \ -G1 X23.75 Y23.75 Z5.0; \ -G1 X23.75 Y26.25 Z5.0; \ -G1 X26.25 Y26.25 Z5.0" \ No newline at end of file