type: get rid of unused Type._read_pretty()

This commit is contained in:
Omar Sandoval 2018-07-22 00:30:41 -07:00
parent cab896a65b
commit b70addd5ae
2 changed files with 0 additions and 8 deletions

View File

@ -201,13 +201,6 @@ class Type:
"""
raise NotImplementedError()
def _read_pretty(self, reader: CoreReader, address: int, *,
cast: bool = True) -> str:
"""
Return self._pretty(self._read(...)).
"""
return self._pretty(self._read(reader, address), cast)
class VoidType(Type):
"""

View File

@ -701,7 +701,6 @@ class TestTypeRead(unittest.TestCase):
with tmpfile(b'') as file:
reader = CoreReader(file, [])
self.assertRaises(ValueError, type_._read, reader, 0x0)
self.assertRaises(ValueError, type_._read_pretty, reader, 0x0)
def assertRead(self, type_, buffer, expected_value):
segments = [(0, 0xffff0000, 0x0, len(buffer), len(buffer))]