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

Skip to content

Commit 38763ec

Browse files
committed
Remove commented-out code
Probably too annoying even for debug-annoying
1 parent f349077 commit 38763ec

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lib/matplotlib/dviread.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,6 @@ def _read(self):
148148
while True:
149149
byte = ord(self.file.read(1)[0])
150150
self._dispatch(byte)
151-
# if self.state == _dvistate.inpage:
152-
# matplotlib.verbose.report(
153-
# 'Dvi._read: after %d at %f,%f' %
154-
# (byte, self.h, self.v),
155-
# 'debug-annoying')
156151
if byte == 140: # end of page
157152
return True
158153
if self.state == _dvistate.post_post: # end of file
@@ -282,9 +277,6 @@ def _put_char(self, char):
282277
if font._vf is None:
283278
self.text.append((self.h, self.v, font, char,
284279
font._width_of(char)))
285-
# matplotlib.verbose.report(
286-
# 'Dvi._put_char: %d,%d %d' %(self.h, self.v, char),
287-
# 'debug-annoying')
288280
else:
289281
scale = font._scale
290282
for x, y, f, g, w in font._vf[char].text:
@@ -303,9 +295,6 @@ def _put_rule(self, a, b):
303295
raise ValueError("misplaced put_rule in dvi file")
304296
if a > 0 and b > 0:
305297
self.boxes.append((self.h, self.v, a, b))
306-
# matplotlib.verbose.report(
307-
# 'Dvi._put_rule: %d,%d %d,%d' % (self.h, self.v, a, b),
308-
# 'debug-annoying')
309298

310299
def _nop(self):
311300
pass
@@ -401,10 +390,6 @@ def _fnt_def(self, k, c, s, d, a, l, n):
401390
raise FileNotFoundError("missing font metrics file: %s" % fontname)
402391
if c != 0 and tfm.checksum != 0 and c != tfm.checksum:
403392
raise ValueError('tfm checksum mismatch: %s'%n)
404-
# It seems that the assumption behind the following check is incorrect:
405-
#if d != tfm.design_size:
406-
# raise ValueError, 'tfm design size mismatch: %d in dvi, %d in %s'%\
407-
# (d, tfm.design_size, n)
408393

409394
vf = _vffile(fontname)
410395

0 commit comments

Comments
 (0)