Skip to content

Commit 9f45c0b

Browse files
committed
Remove redundant code
1 parent 9fbf748 commit 9f45c0b

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

pgfutils.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -262,29 +262,6 @@ def parse_dimension(spec: str) -> float:
262262
class PgfutilsParser(configparser.ConfigParser):
263263
"""Custom configuration parser with Matplotlib dimension and color support."""
264264

265-
# Regular expression to parse a dimension into size and (optional) unit.
266-
_dimre = re.compile(r"^\s*(?P<size>\d+(?:\.\d*)?)\s*(?P<unit>.+?)?\s*$")
267-
268-
# Conversion factors (divisors) to go from the given unit to inches.
269-
_dimconv = {
270-
"cm": 2.54,
271-
"centimetre": 2.54,
272-
"centimeter": 2.54,
273-
"centimetres": 2.54,
274-
"centimeters": 2.54,
275-
"mm": 25.4,
276-
"millimetre": 25.4,
277-
"millimeter": 25.4,
278-
"millimetres": 25.4,
279-
"millimeters": 25.4,
280-
"in": 1,
281-
"inch": 1,
282-
"inches": 1,
283-
"pt": 72.27, # Printers points, not the 1/72 Postscript/PDF points.
284-
"point": 72.27,
285-
"points": 72.27,
286-
}
287-
288265
def read(self, filename, encoding=None):
289266
"""Read configuration options from a file.
290267

0 commit comments

Comments
 (0)