-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Remove unused variables #12829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unused variables #12829
Conversation
@@ -822,7 +822,7 @@ def __setitem__(self, key, val): | |||
"either import that binding first, or set the QT_API " | |||
"environment variable.") | |||
cbook.warn_deprecated( | |||
"2.2", name=key, obj_type="rcparam", addendum=addendum) | |||
version, name=key, obj_type="rcparam", addendum=addendum) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced the hard-coded value.
else: | ||
verticesA, codesA = [], [] | ||
ddxA, ddyA = 0., 0. | ||
verticesA, codesA, ddxA, ddyA = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO this way it's more clear that the whole block is just a conditional assignment of the four variables.
7832977
to
fa4992b
Compare
lib/matplotlib/patches.py
Outdated
else: | ||
verticesB, codesB = [], [] | ||
ddxB, ddyB = 0., 0. | ||
has_end_arrow = self.endarrow and not (x2 == x3 and y2 == y3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.endarrow and (x2 != x3 or y2 != y3)
or
self.endarrow and (x2, y2) != (x3, y3)
fa4992b
to
94ea287
Compare
ping @anntzer for a re-review... |
PR Summary