remove unnecessary function qext_newtype()

This commit is contained in:
Florian Stecker 2022-06-16 15:43:19 +02:00
parent cfc13d2ba7
commit 920a530385
2 changed files with 0 additions and 11 deletions

10
qext.c
View File

@ -37,16 +37,6 @@ static void qext_init_type(struct qext_type *type)
} }
} }
struct qext_type *qext_newtype(int rank, const int *coeffs)
{
struct qext_type *type = malloc(sizeof(struct qext_type));
type->rank = rank;
type->integer_coeffs = coeffs;
qext_init_type(type);
return type;
}
void qext_init(qext_number x, struct qext_type *type) void qext_init(qext_number x, struct qext_type *type)
{ {
if(type->coeffs == NULL) // uninitialized default type if(type->coeffs == NULL) // uninitialized default type

1
qext.h
View File

@ -20,7 +20,6 @@ extern struct qext_type *QT_TRIVIAL;
extern struct qext_type *QT_SQRT5; extern struct qext_type *QT_SQRT5;
extern struct qext_type *QT_GAUSS_SQRT5; extern struct qext_type *QT_GAUSS_SQRT5;
struct qext_type *qext_newtype(int rank, const int *coeffs);
void qext_init(qext_number x, struct qext_type *type); void qext_init(qext_number x, struct qext_type *type);
void qext_clear(qext_number x); void qext_clear(qext_number x);
void qext_set(qext_number x, qext_number y); void qext_set(qext_number x, qext_number y);