From 3c64c66b5c402addcbd20b9056d4e0965d2acc39 Mon Sep 17 00:00:00 2001 From: Catherine Date: Wed, 3 Apr 2024 09:50:26 +0000 Subject: [PATCH] _utils: remove unused `extend` decorator. This decorator was only used in the (removed) compat layer. --- amaranth/_utils.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/amaranth/_utils.py b/amaranth/_utils.py index 35adcf9..9384615 100644 --- a/amaranth/_utils.py +++ b/amaranth/_utils.py @@ -76,16 +76,6 @@ def _ignore_deprecated(f=None): return decorator_like -def extend(cls): - def decorator(f): - if isinstance(f, property): - name = f.fget.__name__ - else: - name = f.__name__ - setattr(cls, name, f) - return decorator - - def get_linter_options(filename): first_line = linecache.getline(filename, 1) if first_line: