Skip to content

Commit

Permalink
Trac #29937: remove deprecated things in plot3d and structure
Browse files Browse the repository at this point in the history
from #27450 and #25236

URL: https://trac.sagemath.org/29937
Reported by: chapoton
Ticket author(s): Frédéric Chapoton
Reviewer(s): Travis Scrimshaw
  • Loading branch information
Release Manager committed Jul 8, 2020
2 parents 08f24ca + 75bb8d9 commit 1c1284c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 29 deletions.
19 changes: 0 additions & 19 deletions src/sage/plot/plot3d/index_face_set.pyx
Expand Up @@ -1799,25 +1799,6 @@ cdef class VertexIter:
self.set.vs[self.i-1].z)


def len3d(v):
"""
Return the norm of a vector in three dimensions.
This is deprecated since :trac:`27450` .
EXAMPLES::
sage: from sage.plot.plot3d.index_face_set import len3d
sage: len3d((1,2,3))
doctest:warning...:
DeprecationWarning: len3d is deprecated, use point_c_len instead
See https://trac.sagemath.org/27450 for details.
3.7416573867739413
"""
deprecation(27450, "len3d is deprecated, use point_c_len instead")
return sqrt(v[0] * v[0] + v[1] * v[1] + v[2] * v[2])


def sticker(face, width, hover):
"""
Return a sticker over the given face.
Expand Down
12 changes: 2 additions & 10 deletions src/sage/structure/element.pyx
Expand Up @@ -4030,17 +4030,9 @@ cpdef canonical_coercion(x, y):
"""
return coercion_model.canonical_coercion(x,y)

cpdef bin_op(x, y, op):
return coercion_model.bin_op(x,y,op)


def coerce(Parent p, x):
from sage.misc.superseded import deprecation
deprecation(25236, "sage.structure.element.coerce is deprecated")
try:
return p._coerce_c(x)
except AttributeError:
return p(x)
cpdef bin_op(x, y, op):
return coercion_model.bin_op(x, y, op)


# Make coercion_model accessible as Python object
Expand Down

0 comments on commit 1c1284c

Please sign in to comment.