diff options
| author | Glenn Smith <glenn@vector35.com> | 2024-02-14 17:25:58 -0500 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2024-02-19 17:01:29 -0500 |
| commit | 5628028111975911489405844512277541254188 (patch) | |
| tree | 4a44a3ef67ae5d6dbd0cbd4162a79d8d921fa635 /python/typearchive.py | |
| parent | 2911628937552644687336352361767840783854 (diff) | |
Type archive python api: remove callbacks that were dropped from release
Diffstat (limited to 'python/typearchive.py')
| -rw-r--r-- | python/typearchive.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/python/typearchive.py b/python/typearchive.py index bf6c1a79..26b15b5f 100644 --- a/python/typearchive.py +++ b/python/typearchive.py @@ -657,22 +657,6 @@ class TypeArchiveNotification: def __init__(self): pass - def view_attached(self, archive: 'TypeArchive', view: 'binaryview.BinaryView') -> None: - """ - Called when a new view attaches to the type archive. - :param archive: Source Type archive - :param view: View attaching the archive - """ - pass - - def view_detached(self, archive: 'TypeArchive', view: 'binaryview.BinaryView') -> None: - """ - Called when a view that has previously attached the archive detaches it - :param archive: Source Type archive - :param view: View detaching the archive - """ - pass - def type_added(self, archive: 'TypeArchive', id: str, definition: '_types.Type') -> None: """ Called when a type is added to the archive @@ -729,18 +713,6 @@ class TypeArchiveNotificationCallbacks: def _unregister(self) -> None: core.BNUnregisterTypeArchiveNotification(self._archive.handle, self._cb) - def _view_attached(self, ctxt, archive: ctypes.POINTER(core.BNTypeArchive), view: ctypes.POINTER(core.BNBinaryView)) -> None: - try: - self._notify.view_attached(self._archive, binaryview.BinaryView(handle=core.BNNewViewReference(view))) - except: - log.log_error(traceback.format_exc()) - - def _view_detached(self, ctxt, archive: ctypes.POINTER(core.BNTypeArchive), view: ctypes.POINTER(core.BNBinaryView)) -> None: - try: - self._notify.view_detached(self._archive, binaryview.BinaryView(handle=core.BNNewViewReference(view))) - except: - log.log_error(traceback.format_exc()) - def _type_added(self, ctxt, archive: ctypes.POINTER(core.BNTypeArchive), id: ctypes.c_char_p, definition: ctypes.POINTER(core.BNType)) -> None: try: self._notify.type_added(self._archive, core.pyNativeStr(id), _types.Type.create(handle=core.BNNewTypeReference(definition))) |
