From fdb1bb30bcdbce376adaf0adb71a7c54f2433395 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Sun, 25 Oct 2015 20:20:04 -0700 Subject: [PATCH] Remove unused field types --- graphene/core/fields.py | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/graphene/core/fields.py b/graphene/core/fields.py index 88b2b2da..2e390f82 100644 --- a/graphene/core/fields.py +++ b/graphene/core/fields.py @@ -187,24 +187,6 @@ class Field(object): return obj -class NativeField(Field): - - def __init__(self, field=None): - super(NativeField, self).__init__(None) - self.field = field - - def get_field(self, schema): - return self.field - - @memoize - def internal_field(self, schema): - return self.get_field(schema) - - @memoize - def internal_type(self, schema): - return self.internal_field(schema).type - - class LazyField(Field): @memoize @@ -218,24 +200,6 @@ class LazyField(Field): return self.inner_field(schema).internal_field(schema) -class LazyNativeField(NativeField): - - def __init__(self, *args, **kwargs): - super(LazyNativeField, self).__init__(None, *args, **kwargs) - - def get_field(self, schema): - raise NotImplementedError( - "get_field function not implemented for %s LazyField" % self.__class__) - - @memoize - def internal_field(self, schema): - return self.get_field(schema) - - @memoize - def internal_type(self, schema): - return self.internal_field(schema).type - - class TypeField(Field): def __init__(self, *args, **kwargs):