Skip to content

Commit

Permalink
Remove some long deprecated stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
wbhart committed Apr 26, 2022
1 parent 9af41eb commit 69f585e
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 81 deletions.
4 changes: 2 additions & 2 deletions deprecations.txt
@@ -1,11 +1,11 @@
# Deprecated in Flint 2.6.0
# Deprecated in Flint 2.6.0 (removed)

n_gcd_full -> n_gcd
fmpz_poly_is_x -> fmpz_poly_is_gen
fmpz_mod_poly_is_x -> fmpz_mod_poly_is_gen
fmpq_poly_is_x -> fmpq_poly_is_gen

# Deprecated in Flint 2.7.0
# Deprecated in Flint 2.7.0 (removed)

nmod_mat_scalar_mul_add -> nmod_mat_scalar_adduml_ui

Expand Down
7 changes: 0 additions & 7 deletions doc/source/ulong_extras.rst
Expand Up @@ -323,13 +323,6 @@ Greatest common divisor

This function wraps GMP's ``mpn_gcd_1``.

.. function:: ulong n_gcd_full(ulong x, ulong y)

Returns the greatest common divisor `g` of `x` and `y`.
No assumptions are made about `x` and `y`.

This function is deprecated.

.. function:: ulong n_gcdinv(ulong * a, ulong x, ulong y)

Returns the greatest common divisor `g` of `x` and `y` and computes
Expand Down
3 changes: 0 additions & 3 deletions fmpq_poly.h
Expand Up @@ -256,9 +256,6 @@ int fmpq_poly_is_gen(const fmpq_poly_t op)
return (op->length) == 2 && (*(op->coeffs + 1) == WORD(1)) && (*(op->coeffs + 0) == WORD(0)) && (*(op->den) == WORD(1));
}

/* Deprecated */
#define fmpq_poly_is_x fmpq_poly_is_gen

/* Addition and subtraction ************************************************/

FLINT_DLL void _fmpq_poly_add(fmpz * rpoly, fmpz_t rden,
Expand Down
3 changes: 0 additions & 3 deletions fmpz_mod_poly.h
Expand Up @@ -260,9 +260,6 @@ int fmpz_mod_poly_is_unit(const fmpz_mod_poly_t op, const fmpz_mod_ctx_t ctx)
return (op->length == 1) && fmpz_mod_is_invertible(op->coeffs + 0, ctx);
}

/* Deprecated */
#define fmpz_mod_poly_is_x fmpz_mod_poly_is_gen

/* Assignment and basic manipulation ****************************************/

FLINT_DLL void fmpz_mod_poly_set(fmpz_mod_poly_t poly1,
Expand Down
3 changes: 0 additions & 3 deletions fmpz_poly.h
Expand Up @@ -284,9 +284,6 @@ int fmpz_poly_is_gen(const fmpz_poly_t op)
return (op->length) == 2 && (*(op->coeffs + 1) == WORD(1)) && (*(op->coeffs + 0) == WORD(0));
}

/* Deprecated */
#define fmpz_poly_is_x fmpz_poly_is_gen

FMPZ_POLY_INLINE
int fmpz_poly_equal_fmpz(const fmpz_poly_t poly, const fmpz_t c)
{
Expand Down
3 changes: 0 additions & 3 deletions nmod_mat.h
Expand Up @@ -189,9 +189,6 @@ FLINT_DLL void nmod_mat_scalar_addmul_ui(nmod_mat_t dest,
const nmod_mat_t X, const nmod_mat_t Y, const mp_limb_t b);


/* deprecated */
#define nmod_mat_scalar_mul_add(dest, X, b, Y) nmod_mat_scalar_addmul_ui(dest, X, Y, b)

NMOD_MAT_INLINE
void nmod_mat_scalar_mul_fmpz(nmod_mat_t res, const nmod_mat_t M, const fmpz_t c)
{
Expand Down
2 changes: 0 additions & 2 deletions ulong_extras.h
Expand Up @@ -321,8 +321,6 @@ FLINT_DLL slong n_sqrtmodn(ulong ** sqrt, ulong a, n_factor_t * fac);

FLINT_DLL ulong n_gcd(ulong x, ulong y);

#define n_gcd_full n_gcd

FLINT_DLL ulong n_xgcd(ulong * a, ulong * b, ulong x, ulong y);

FLINT_DLL ulong n_gcdinv(ulong * a, ulong x, ulong y);
Expand Down
58 changes: 0 additions & 58 deletions ulong_extras/test/t-gcd_full.c

This file was deleted.

0 comments on commit 69f585e

Please sign in to comment.