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

Skip to content

Commit 48747b2

Browse files
authored
Remove unused dicts from backend_cairo. (#24760)
They are unused since 15c39a3.
1 parent a9ba9d5 commit 48747b2

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

lib/matplotlib/backends/backend_cairo.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -72,35 +72,6 @@ def attr(field):
7272
return name, slant, weight
7373

7474

75-
# Mappings used for deprecated properties in RendererCairo, see below.
76-
_f_weights = {
77-
100: cairo.FONT_WEIGHT_NORMAL,
78-
200: cairo.FONT_WEIGHT_NORMAL,
79-
300: cairo.FONT_WEIGHT_NORMAL,
80-
400: cairo.FONT_WEIGHT_NORMAL,
81-
500: cairo.FONT_WEIGHT_NORMAL,
82-
600: cairo.FONT_WEIGHT_BOLD,
83-
700: cairo.FONT_WEIGHT_BOLD,
84-
800: cairo.FONT_WEIGHT_BOLD,
85-
900: cairo.FONT_WEIGHT_BOLD,
86-
'ultralight': cairo.FONT_WEIGHT_NORMAL,
87-
'light': cairo.FONT_WEIGHT_NORMAL,
88-
'normal': cairo.FONT_WEIGHT_NORMAL,
89-
'medium': cairo.FONT_WEIGHT_NORMAL,
90-
'regular': cairo.FONT_WEIGHT_NORMAL,
91-
'semibold': cairo.FONT_WEIGHT_BOLD,
92-
'bold': cairo.FONT_WEIGHT_BOLD,
93-
'heavy': cairo.FONT_WEIGHT_BOLD,
94-
'ultrabold': cairo.FONT_WEIGHT_BOLD,
95-
'black': cairo.FONT_WEIGHT_BOLD,
96-
}
97-
_f_angles = {
98-
'italic': cairo.FONT_SLANT_ITALIC,
99-
'normal': cairo.FONT_SLANT_NORMAL,
100-
'oblique': cairo.FONT_SLANT_OBLIQUE,
101-
}
102-
103-
10475
class RendererCairo(RendererBase):
10576
def __init__(self, dpi):
10677
self.dpi = dpi

0 commit comments

Comments
 (0)