Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sunilshetye committed Dec 16, 2024
1 parent 71517e8 commit 3640ec8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions blocks/Xcos/XmlParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,13 +321,11 @@ def getLinkStyle(sourceVertex, sourceType, targetVertex, targetType):
targetType in ['ExplicitOutputPort', 'ExplicitLink', 'ImplicitOutputPort', 'ImplicitLink', 'CommandPort', 'CommandControlLink']:
(sourceVertex, targetVertex) = (targetVertex, sourceVertex)
(sourceType, targetType) = (targetType, sourceType)
waypoints.reverse()
switch_split = True
elif sourceType in ['ExplicitInputPort', 'ExplicitLink', 'ImplicitInputPort', 'ImplicitLink', 'ControlPort', 'CommandControlLink'] and \
targetType in ['ExplicitOutputPort', 'ImplicitOutputPort', 'CommandPort']:
(sourceVertex, targetVertex) = (targetVertex, sourceVertex)
(sourceType, targetType) = (targetType, sourceType)
waypoints.reverse()
switch_split = True

if sourceType in ['ExplicitInputPort', 'ExplicitOutputPort', 'CommandPort', 'ControlPort'] and \
Expand Down Expand Up @@ -368,16 +366,10 @@ def getLinkStyle(sourceVertex, sourceType, targetVertex, targetType):
print('Not root')
sys.exit(2)

portCount = {}
IDLIST = {}
nodeList = {}
componentOrdering = 0
nextattribid = 1
nextAttribForSplit = 10000
edgeDict = {}
edgeList = []
mxPointList = {}
blkgeometry = {}
points = []
points1 = []
cells = list(root)
Expand Down

0 comments on commit 3640ec8

Please sign in to comment.