Skip to content

Commit

Permalink
Remove useless _setattrs
Browse files Browse the repository at this point in the history
  • Loading branch information
breuleux committed Dec 12, 2024
1 parent 766c4a4 commit 7941bc4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/ovld/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@
_current_id = itertools.count()


@keyword_decorator
def _setattrs(fn, **kwargs):
for k, v in kwargs.items():
setattr(fn, k, v)
return fn


def bootstrap_dispatch(ov, name):
def first_entry(*args, **kwargs):
ov.compile()
Expand Down Expand Up @@ -327,7 +320,6 @@ def __get__(self, obj, cls):
self.compile()
return self.dispatch.__get__(obj, cls)

@_setattrs(rename="dispatch")
def __call__(self, *args, **kwargs): # pragma: no cover
"""Call the overloaded function.
Expand All @@ -337,7 +329,6 @@ def __call__(self, *args, **kwargs): # pragma: no cover
self.compile()
return self.dispatch(*args, **kwargs)

@_setattrs(rename="next")
def next(self, *args):
"""Call the next matching method after the caller, in terms of priority or specificity."""
fr = sys._getframe(1)
Expand Down

0 comments on commit 7941bc4

Please sign in to comment.