Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4f0a68e

Browse files
committed
Removed unnecessary code
1 parent 821abea commit 4f0a68e

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

lib/matplotlib/bezier.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,6 @@ def get_parallels(bezier2, width):
345345
one separated by *width*.
346346
"""
347347

348-
# # Return original bezier path for left and right paths
349-
# # when start point equals midpoint equals endpoint.
350-
if (all(np.array_equal(x, bezier2[0]) for x in bezier2)):
351-
return bezier2, bezier2
352-
353348
# The parallel bezier lines are constructed by following ways.
354349
# c1 and c2 are contol points representing the begin and end of the
355350
# bezier line.
@@ -435,11 +430,6 @@ def make_wedged_bezier2(bezier2, width, w1=1., wm=0.5, w2=0.):
435430
*width*.
436431
"""
437432

438-
# # Return original bezier path for left and right paths
439-
# # when start point equals midpoint equals endpoint.
440-
if (all(np.array_equal(x, bezier2[0]) for x in bezier2)):
441-
return bezier2, bezier2
442-
443433
# c1, cm, c2
444434
c1x, c1y = bezier2[0]
445435
cmx, cmy = bezier2[1]

0 commit comments

Comments
 (0)