Skip to content

Commit 3c64c66

Browse files
committed
_utils: remove unused extend decorator.
This decorator was only used in the (removed) compat layer.
1 parent f5a8c07 commit 3c64c66

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

amaranth/_utils.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,6 @@ def decorator_like(*args, **kwargs):
7676
return decorator_like
7777

7878

79-
def extend(cls):
80-
def decorator(f):
81-
if isinstance(f, property):
82-
name = f.fget.__name__
83-
else:
84-
name = f.__name__
85-
setattr(cls, name, f)
86-
return decorator
87-
88-
8979
def get_linter_options(filename):
9080
first_line = linecache.getline(filename, 1)
9181
if first_line:

0 commit comments

Comments
 (0)