From ce44da6b993ee60e92bbbe0999ecf9a71f66bdf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Sun, 29 Dec 2024 07:59:21 -0500 Subject: [PATCH] lib: Fix safeRef regression after removing `__cmp__` in #4684 (#4896) --- python/grass/pydispatch/saferef.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/python/grass/pydispatch/saferef.py b/python/grass/pydispatch/saferef.py index a8eadaa5376..bbbd7dd518d 100644 --- a/python/grass/pydispatch/saferef.py +++ b/python/grass/pydispatch/saferef.py @@ -164,21 +164,6 @@ def __nonzero__(self): __bool__ = __nonzero__ - def __eq__(self, other): - if not isinstance(other, self.__class__): - return False - return self.key == other.key - - def __lt__(self, other): - if not isinstance(other, self.__class__): - return self.__class__.__name__ < other.__class__.__name__ - return self.key < other.key - - def __gt__(self, other): - if not isinstance(other, self.__class__): - return self.__class__.__name__ > other.__class__.__name__ - return self.key > other.key - def __call__(self): """Return a strong reference to the bound method