diff options
| author | Alexander Taylor <alex@vector35.com> | 2024-07-24 17:17:45 -0400 |
|---|---|---|
| committer | Alexander Taylor <alex@vector35.com> | 2024-07-24 17:17:45 -0400 |
| commit | 6dee35541be6669d2d783bea37e0f230b10ade23 (patch) | |
| tree | 6b99fb0012ff62b0f449d809b9405c8a097be57f /python/filemetadata.py | |
| parent | ceeef1fe56d3f2aae280497810dc6860d1e483c5 (diff) | |
Remove deprecated API functions.
Diffstat (limited to 'python/filemetadata.py')
| -rw-r--r-- | python/filemetadata.py | 21 |
1 files changed, 0 insertions, 21 deletions
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 |
