Skip to content

Commit

Permalink
Removed unused get_class_that_defined_method function
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Jul 20, 2020
1 parent 1232efe commit 19d80ce
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/labthings/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,18 +337,6 @@ def path_relative_to(source_file, *paths):
return os.path.join(os.path.abspath(os.path.dirname(source_file)), *paths)


def get_class_that_defined_method(meth):
"""
:param meth:
"""
for cls in inspect.getmro(meth.im_class):
if meth.__name__ in cls.__dict__:
return cls
return None


def url_for_property(property_object: object, property_name: str):
"""
Expand Down

0 comments on commit 19d80ce

Please sign in to comment.