Permalink
Browse files

Remove dead code in patches

The pad variable was never used in this function, so it is being
removed. It also depended on a kwarg, which was also not used.
  • Loading branch information...
1 parent 222a358 commit 48e16ed1401c3f7c14b8035a37714be0a16e210a @dmcdougall committed Nov 11, 2012
Showing with 1 addition and 7 deletions.
  1. +1 −7 lib/matplotlib/patches.py
@@ -1593,18 +1593,12 @@ def _pprint_table(_table, leadingspace=2):
return "\n".join(lines)
-def _pprint_styles(_styles, leadingspace=2):
+def _pprint_styles(_styles):
"""
A helper function for the _Style class. Given the dictionary of
(stylename : styleclass), return a formatted string listing all the
styles. Used to update the documentation.
"""
- # FIXME pad isn't used, which means leadingspace is not use.
- if leadingspace:
- pad = ' ' * leadingspace
- else:
- pad = ''
-
names, attrss, clss = [], [], []
import inspect

0 comments on commit 48e16ed

Please sign in to comment.