mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-23 17:53:07 +00:00
type: get rid of unused Type._read_pretty()
This commit is contained in:
parent
cab896a65b
commit
b70addd5ae
@ -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):
|
||||
"""
|
||||
|
@ -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))]
|
||||
|
Loading…
Reference in New Issue
Block a user