From 00e36b52d5cc45bd69c77c87685650ea8851993a Mon Sep 17 00:00:00 2001 From: Jonathan Kim Date: Mon, 16 Mar 2020 15:51:07 +0000 Subject: [PATCH] Remove unused function (#1160) --- graphene/types/schema.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/graphene/types/schema.py b/graphene/types/schema.py index 458948f4..29ead4a7 100644 --- a/graphene/types/schema.py +++ b/graphene/types/schema.py @@ -372,31 +372,6 @@ class TypeMap(dict): return type_ - def get_resolver(self, graphene_type, name, default_value): - if not issubclass(graphene_type, ObjectType): - return - resolver = getattr(graphene_type, f"resolve_{name}", None) - if not resolver: - # If we don't find the resolver in the ObjectType class, then try to - # find it in each of the interfaces - interface_resolver = None - for interface in graphene_type._meta.interfaces: - if name not in interface._meta.fields: - continue - interface_resolver = getattr(interface, f"resolve_{name}", None) - if interface_resolver: - break - resolver = interface_resolver - - # Only if is not decorated with classmethod - if resolver: - return get_unbound_function(resolver) - - default_resolver = ( - graphene_type._meta.default_resolver or get_default_resolver() - ) - return partial(default_resolver, name, default_value) - class Schema: """Schema Definition.