Skip to content

Commit

Permalink
Path: remove unnecessary imports
Browse files Browse the repository at this point in the history
  • Loading branch information
brad committed Jun 10, 2019
1 parent 6ccb0cf commit b564189
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions src/Mod/Path/PathCommands.py
Expand Up @@ -35,7 +35,6 @@
if FreeCAD.GuiUp:
import FreeCADGui
from PySide import QtCore
# from DraftTools import translate
else:
def translate(ctxt, txt):
return txt
Expand Down Expand Up @@ -79,7 +78,6 @@ def IsActive(self):
return False

def Activated(self):
# from PathScripts.PathUtils import loopdetect
from PathScripts.PathUtils import horizontalEdgeLoop
from PathScripts.PathUtils import horizontalFaceLoop
sel = FreeCADGui.Selection.getSelectionEx()[0]
Expand Down
4 changes: 0 additions & 4 deletions src/Mod/Path/PathScripts/PathCollision.py
Expand Up @@ -32,10 +32,6 @@
PathLog.trackModule('PathCollision')
FreeCAD.setLogLevel('Path.Area', 0)

if FreeCAD.GuiUp:
import FreeCADGui
# from PySide import QtGui


# Qt translation handling
def translate(context, text, disambig=None):
Expand Down
3 changes: 0 additions & 3 deletions src/Mod/Path/PathScripts/PathDeburr.py
Expand Up @@ -24,12 +24,10 @@

import FreeCAD
import Part
# import Path
import PathScripts.PathEngraveBase as PathEngraveBase
import PathScripts.PathLog as PathLog
import PathScripts.PathOp as PathOp
import PathScripts.PathOpTools as PathOpTools
# import PathScripts.PathUtil as PathUtil
import math

from PySide import QtCore
Expand All @@ -54,7 +52,6 @@ def toolDepthAndOffset(width, extraDepth, tool):
tan = math.tan(math.radians(angle / 2))

toolDepth = 0 if 0 == tan else width / tan
# extraDepth = extraDepth
depth = toolDepth + extraDepth
toolOffset = tool.FlatRadius
extraOffset = tool.Diameter / 2 - width if 180 == angle else extraDepth / tan
Expand Down
2 changes: 0 additions & 2 deletions src/Mod/Path/PathScripts/PathJobGui.py
Expand Up @@ -30,7 +30,6 @@
import PathScripts.PathJobCmd as PathJobCmd
import PathScripts.PathJobDlg as PathJobDlg
import PathScripts.PathGeom as PathGeom
# import PathScripts.PathGui as PathGui
import PathScripts.PathGuiInit as PathGuiInit
import PathScripts.PathLog as PathLog
import PathScripts.PathPreferences as PathPreferences
Expand All @@ -41,7 +40,6 @@
import PathScripts.PathUtil as PathUtil
import PathScripts.PathUtils as PathUtils
import math
# import sys
import traceback

from PySide import QtCore, QtGui
Expand Down

0 comments on commit b564189

Please sign in to comment.