From e4ab8f35ce16baafe11d7056d1d1304f3c057cd5 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Wed, 18 Jan 2023 11:15:17 +0800 Subject: Deprecate __len__ of Segment Print a warning message when a deprecated function/property/class is used --- python/decorators.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'python/decorators.py') 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. -- cgit v1.3.1