summaryrefslogtreecommitdiff
path: root/python/decorators.py
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2023-01-18 11:15:17 +0800
committerXusheng <xusheng@vector35.com>2023-01-19 09:50:35 +0800
commite4ab8f35ce16baafe11d7056d1d1304f3c057cd5 (patch)
tree415154972bad461bdc2e5a3a93f4c7c6b5f767c0 /python/decorators.py
parent919384bb2bb9216e000750a00793549ef7a46d87 (diff)
Deprecate __len__ of Segment
Print a warning message when a deprecated function/property/class is used
Diffstat (limited to 'python/decorators.py')
-rw-r--r--python/decorators.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/python/decorators.py b/python/decorators.py
index c6664652..6ac77be0 100644
--- a/python/decorators.py
+++ b/python/decorators.py
@@ -12,20 +12,6 @@ def passive(cls):
return cls
-def deprecated(cls):
- deprecated_note = '''
- .. warning:: This object is deprecated. Please migrate code away from using this class or method.
-
-'''
-
- if hasattr(cls, "__doc__") and cls.__doc__:
- cls.__doc__ = deprecated_note + cls.__doc__
- else:
- cls.__doc__ = deprecated_note
-
- return cls
-
-
def enterprise(cls):
enterprise_note = '''
.. note: This object is only available in the Enterprise edition of Binary Ninja.