From 6dee35541be6669d2d783bea37e0f230b10ade23 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Wed, 24 Jul 2024 17:17:45 -0400 Subject: Remove deprecated API functions. --- python/filemetadata.py | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'python/filemetadata.py') diff --git a/python/filemetadata.py b/python/filemetadata.py index a78f548b..a840bd78 100644 --- a/python/filemetadata.py +++ b/python/filemetadata.py @@ -604,27 +604,6 @@ class FileMetadata: ) # TODO : When this is removed, you can probably remove `BNOpenExistingDatabase` and `BNOpenExistingDatabaseWithProgress` too - @deprecation.deprecated(deprecated_in="3.5.4378") - def open_existing_database(self, filename: str, progress_func: Optional[Callable[[int, int], bool]] = None): - if progress_func is None: - view = core.BNOpenExistingDatabase(self.handle, str(filename)) - else: - view = core.BNOpenExistingDatabaseWithProgress( - self.handle, str(filename), None, - ctypes.CFUNCTYPE(ctypes.c_bool, ctypes.c_void_p, ctypes.c_ulonglong, - ctypes.c_ulonglong)(lambda ctxt, cur, total: progress_func(cur, total)) - ) - if view is None: - return None - return binaryview.BinaryView(file_metadata=self, handle=view) - - # TODO : When this is removed, you can probably remove `BNOpenDatabaseForConfiguration` too - @deprecation.deprecated(deprecated_in="3.5.4378") - def open_database_for_configuration(self, filename: str) -> Optional['binaryview.BinaryView']: - view = core.BNOpenDatabaseForConfiguration(self.handle, str(filename)) - if view is None: - return None - return binaryview.BinaryView(file_metadata=self, handle=view) def save_auto_snapshot(self, progress_func: Optional[ProgressFuncType] = None, settings: Optional[SaveSettings] = None) -> bool: _settings = None -- cgit v1.3.1