Skip to content

Commit

Permalink
remove deprecated aliases from sagemath#33941
Browse files Browse the repository at this point in the history
  • Loading branch information
yyyyx4 committed Nov 5, 2024
1 parent 217827c commit 4fdcbd9
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions src/sage/rings/finite_rings/element_base.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ from sage.structure.element cimport Element
from sage.structure.parent cimport Parent
from sage.rings.integer_ring import ZZ
from sage.rings.integer import Integer
from sage.misc.superseded import deprecated_function_alias


def is_FiniteFieldElement(x):
Expand Down Expand Up @@ -1104,8 +1103,6 @@ cdef class FinitePolyExtElement(FiniteRingElement):
f = f.reverse(self.parent().degree() - 1)
return f(p)

integer_representation = deprecated_function_alias(33941, to_integer)

def to_bytes(self, byteorder='big'):
r"""
Return an array of bytes representing an integer.
Expand Down
3 changes: 0 additions & 3 deletions src/sage/rings/finite_rings/finite_field_base.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ from sage.misc.cachefunc import cached_method
from sage.misc.prandom import randrange
from sage.rings.integer cimport Integer
import sage.rings.abc
from sage.misc.superseded import deprecation_cython as deprecation, deprecated_function_alias

# Copied from sage.misc.fast_methods, used in __hash__() below.
cdef int SIZEOF_VOID_P_SHIFT = 8*sizeof(void *) - 4
Expand Down Expand Up @@ -457,8 +456,6 @@ cdef class FiniteField(Field):
r = r * g + self(d)
return r

fetch_int = deprecated_function_alias(33941, from_integer)

def _is_valid_homomorphism_(self, codomain, im_gens, base_map=None):
"""
Return ``True`` if the map from ``self`` to codomain sending
Expand Down
3 changes: 0 additions & 3 deletions src/sage/rings/finite_rings/finite_field_givaro.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from sage.rings.integer import Integer
from sage.rings.finite_rings.element_givaro import Cache_givaro
from sage.libs.pari.all import pari
from sage.misc.superseded import deprecated_function_alias


class FiniteField_givaro(FiniteField):
Expand Down Expand Up @@ -488,8 +487,6 @@ def from_integer(self, n):
"""
return self._cache.fetch_int(n)

fetch_int = deprecated_function_alias(33941, from_integer)

def _pari_modulus(self):
"""
Return the modulus of ``self`` in a format for PARI.
Expand Down
3 changes: 0 additions & 3 deletions src/sage/rings/finite_rings/finite_field_ntl_gf2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from sage.rings.finite_rings.finite_field_base import FiniteField
from sage.libs.pari.all import pari
from sage.rings.integer import Integer
from sage.misc.superseded import deprecated_function_alias


def late_import():
Expand Down Expand Up @@ -289,8 +288,6 @@ def from_integer(self, number):
"""
return self._cache.fetch_int(number)

fetch_int = deprecated_function_alias(33941, from_integer)

def _pari_modulus(self):
"""
Return PARI object which is equivalent to the
Expand Down

0 comments on commit 4fdcbd9

Please sign in to comment.