Skip to content

Commit

Permalink
Clean up unused code and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dubstar-04 committed May 9, 2020
1 parent 1d9c1f8 commit e906192
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Mod/Path/PathScripts/PathJob.py
Expand Up @@ -41,8 +41,6 @@
from PySide import QtCore

PathLog.setLevel(PathLog.Level.INFO, PathLog.thisModule())
#PathLog.trackModule(PathLog.thisModule())


# Qt translation handling
def translate(context, text, disambig=None):
Expand Down Expand Up @@ -114,7 +112,6 @@ def __init__(self, obj, models, templateFile = None):
obj.Fixtures = ['G54']

obj.PostProcessorOutputFile = PathPreferences.defaultOutputFile()
#obj.setEditorMode("PostProcessorOutputFile", 0) # set to default mode
obj.PostProcessor = postProcessors = PathPreferences.allEnabledPostProcessors()
defaultPostProcessor = PathPreferences.defaultPostProcessor()
# Check to see if default post processor hasn't been 'lost' (This can happen when Macro dir has changed)
Expand Down Expand Up @@ -367,7 +364,7 @@ def getCycleTime(self):
formattedCycleTime = PathUtil.opProperty(op, 'CycleTime')
opCycleTime = 0
try:
## convert the formatted time from HH:MM:SS to just seconds
# Convert the formatted time from HH:MM:SS to just seconds
opCycleTime = sum(x * int(t) for x, t in zip([1, 60, 3600], reversed(formattedCycleTime.split(":"))))
except:
continue
Expand Down

0 comments on commit e906192

Please sign in to comment.