Skip to content

Commit a2584af

Browse files
committed
remove unused code
1 parent 21deaf4 commit a2584af

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/matplotlib/lines.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,10 +1418,7 @@ def __init__(self, xy1, xy2, slope, **kwargs):
14181418

14191419
def get_transform(self):
14201420
ax = self.axes
1421-
if self._transform is not None:
1422-
points_transform = self._transform + ax.transData.inverted()
1423-
else:
1424-
points_transform = ax.transScale
1421+
points_transform = self._transform + ax.transData.inverted()
14251422

14261423
if self._xy2 is not None:
14271424
# two points were given

0 commit comments

Comments
 (0)