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/architecture.py | |
| parent | ceeef1fe56d3f2aae280497810dc6860d1e483c5 (diff) | |
Remove deprecated API functions.
Diffstat (limited to 'python/architecture.py')
| -rw-r--r-- | python/architecture.py | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/python/architecture.py b/python/architecture.py index c3b0f705..d07d718f 100644 --- a/python/architecture.py +++ b/python/architecture.py @@ -1984,62 +1984,6 @@ class Architecture(metaclass=_ArchitectureMetaClass): """ return NotImplemented - @deprecation.deprecated(deprecated_in="3.1.3724") - def is_view_type_constant_defined(self, type_name: str, const_name: str) -> bool: - """ - :param str type_name: the BinaryView type name of the constant to query - :param str const_name: the constant name to query - :rtype: None - :Example: - - >>> ELF_RELOC_COPY = 5 - >>> arch.set_view_type_constant("ELF", "R_COPY", ELF_RELOC_COPY) - >>> arch.is_view_type_constant_defined("ELF", "R_COPY") - True - >>> arch.is_view_type_constant_defined("ELF", "NOT_THERE") - False - >>> - """ - return False - - @deprecation.deprecated(deprecated_in="3.1.3724") - def get_view_type_constant(self, type_name: str, const_name: str, default_value: int = 0) -> int: - """ - ``get_view_type_constant`` retrieves the view type constant for the given type_name and const_name. - - :param str type_name: the BinaryView type name of the constant to be retrieved - :param str const_name: the constant name to retrieved - :param int default_value: optional default value if the type_name is not present. default value is zero. - :return: The BinaryView type constant or the default_value if not found - :rtype: int - :Example: - - >>> ELF_RELOC_COPY = 5 - >>> arch.set_view_type_constant("ELF", "R_COPY", ELF_RELOC_COPY) - >>> arch.get_view_type_constant("ELF", "R_COPY") - 5 - >>> arch.get_view_type_constant("ELF", "NOT_HERE", 100) - 100 - """ - return 0 - - @deprecation.deprecated(deprecated_in="3.1.3724") - def set_view_type_constant(self, type_name: str, const_name: str, value: int) -> None: - """ - ``set_view_type_constant`` creates a new binaryview type constant. - - :param str type_name: the BinaryView type name of the constant to be registered - :param str const_name: the constant name to register - :param int value: the value of the constant - :rtype: None - :Example: - - >>> ELF_RELOC_COPY = 5 - >>> arch.set_view_type_constant("ELF", "R_COPY", ELF_RELOC_COPY) - >>> - """ - pass - def register_calling_convention(self, cc: 'callingconvention.CallingConvention') -> None: """ ``register_calling_convention`` registers a new calling convention for the Architecture. |
