From 5628028111975911489405844512277541254188 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Wed, 14 Feb 2024 17:25:58 -0500 Subject: Type archive python api: remove callbacks that were dropped from release --- python/typearchive.py | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'python') 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))) -- cgit v1.3.1