Remove unused field types

This commit is contained in:
Syrus Akbary 2015-10-25 20:20:04 -07:00
parent c408c233ea
commit fdb1bb30bc

View File

@ -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):