From 48e16ed1401c3f7c14b8035a37714be0a16e210a Mon Sep 17 00:00:00 2001 From: Damon McDougall Date: Sun, 11 Nov 2012 10:04:12 -0600 Subject: [PATCH] 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. --- lib/matplotlib/patches.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index 28f8bf3f6ab1..12e75052eb26 100644 --- a/lib/matplotlib/patches.py +++ b/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