From 571d41420d5a2c993ab8d2a0b7f4808883c152e9 Mon Sep 17 00:00:00 2001 From: Aran-Fey Date: Wed, 2 Apr 2025 22:55:38 +0200 Subject: [PATCH] remove unnecessary code --- rio/session.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/rio/session.py b/rio/session.py index 469e42e3..3f24d505 100644 --- a/rio/session.py +++ b/rio/session.py @@ -1787,19 +1787,6 @@ window.location.href = {json.dumps(str(active_page_url))}; return True - # Treat bound methods as a special case. Components are often passed - # methods as event handlers. But because the building component is - # new, the methods wouldn't be the same. - try: - old_func = old.__func__ # type: ignore - new_func = new.__func__ # type: ignore - old_self = old.__self__ # type: ignore - new_self = new.__self__ # type: ignore - except AttributeError: - pass - else: - return old_func is new_func and values_equal(old_self, new_self) - # Otherwise attempt to compare the values try: return bool(old == new)