From 1d559c3fbafd0422c596cd9d3ba02a645b925aad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juli=C3=A1n=20Cort=C3=A9s?= Date: Sun, 12 Jul 2020 21:32:58 -0500 Subject: [PATCH] refactor: removed unnecessary interfaces Removed StrField and IntField from fields.pxd --- nyoibo/fields.c | 10 +++++----- nyoibo/fields.pxd | 8 -------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/nyoibo/fields.c b/nyoibo/fields.c index 3064eba..7a2fec0 100644 --- a/nyoibo/fields.c +++ b/nyoibo/fields.c @@ -850,23 +850,24 @@ struct __pyx_obj_6nyoibo_6fields_Field { }; -/* "nyoibo/fields.pxd":9 +/* "nyoibo/fields.pyx":20 * * * cdef class StrField(Field): # <<<<<<<<<<<<<< - * pass * + * _internal_type = str */ struct __pyx_obj_6nyoibo_6fields_StrField { struct __pyx_obj_6nyoibo_6fields_Field __pyx_base; }; -/* "nyoibo/fields.pxd":13 +/* "nyoibo/fields.pyx":25 * * * cdef class IntField(Field): # <<<<<<<<<<<<<< - * pass + * + * _internal_type = int */ struct __pyx_obj_6nyoibo_6fields_IntField { struct __pyx_obj_6nyoibo_6fields_Field __pyx_base; @@ -2027,7 +2028,6 @@ static PyObject *__pyx_pf_6nyoibo_6fields_5Field_7private___get__(struct __pyx_o * cdef readonly private * cdef readonly immutable # <<<<<<<<<<<<<< * cpdef public parse(self, value) - * */ /* Python wrapper */ diff --git a/nyoibo/fields.pxd b/nyoibo/fields.pxd index 65ec21b..8c9574e 100644 --- a/nyoibo/fields.pxd +++ b/nyoibo/fields.pxd @@ -4,11 +4,3 @@ cdef class Field: cdef readonly private cdef readonly immutable cpdef public parse(self, value) - - -cdef class StrField(Field): - pass - - -cdef class IntField(Field): - pass