Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 52217e8

Browse files
author
Frédéric Chapoton
committed
remove deprecated stuff in manifolds
1 parent 1a64da2 commit 52217e8

File tree

1 file changed

+3
-71
lines changed

1 file changed

+3
-71
lines changed

src/sage/manifolds/differentiable/manifold.py

Lines changed: 3 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -428,16 +428,16 @@
428428
429429
"""
430430

431-
#*****************************************************************************
431+
# ****************************************************************************
432432
# Copyright (C) 2015 Eric Gourgoulhon <[email protected]>
433433
# Copyright (C) 2015 Michal Bejger <[email protected]>
434434
# Copyright (C) 2016 Travis Scrimshaw <[email protected]>
435435
#
436436
# Distributed under the terms of the GNU General Public License (GPL)
437437
# as published by the Free Software Foundation; either version 2 of
438438
# the License, or (at your option) any later version.
439-
# http://www.gnu.org/licenses/
440-
#*****************************************************************************
439+
# https://www.gnu.org/licenses/
440+
# ****************************************************************************
441441

442442
from sage.categories.manifolds import Manifolds
443443
from sage.categories.homset import Hom
@@ -947,31 +947,6 @@ def diff_map(self, codomain, coord_functions=None, chart1=None,
947947
coord_functions = {(chart1, chart2): coord_functions}
948948
return homset(coord_functions, name=name, latex_name=latex_name)
949949

950-
def diff_mapping(self, codomain, coord_functions=None, chart1=None,
951-
chart2=None, name=None, latex_name=None):
952-
r"""
953-
Deprecated.
954-
955-
Use :meth:`diff_map` instead.
956-
957-
EXAMPLES::
958-
959-
sage: M = Manifold(2, 'M'); X.<x,y> = M.chart()
960-
sage: N = Manifold(2, 'N'); Y.<u,v> = N.chart()
961-
sage: Phi = M.diff_mapping(N, {(X,Y): [x+y, x-y]}, name='Phi')
962-
doctest:...: DeprecationWarning: Use diff_map() instead.
963-
See http://trac.sagemath.org/18783 for details.
964-
sage: Phi
965-
Differentiable map Phi from the 2-dimensional differentiable
966-
manifold M to the 2-dimensional differentiable manifold N
967-
968-
"""
969-
from sage.misc.superseded import deprecation
970-
deprecation(18783, 'Use diff_map() instead.')
971-
return self.diff_map(codomain, coord_functions=coord_functions,
972-
chart1=chart1, chart2=chart2, name=name,
973-
latex_name=latex_name)
974-
975950
def diffeomorphism(self, codomain, coord_functions=None, chart1=None,
976951
chart2=None, name=None, latex_name=None):
977952
r"""
@@ -3257,27 +3232,6 @@ class :class:`~sage.manifolds.differentiable.diff_map.DiffMap`
32573232
dim = vmodule.ambient_domain().dimension()
32583233
return vmodule.metric(name, signature=dim, latex_name=latex_name)
32593234

3260-
def riemann_metric(self, name, latex_name=None, dest_map=None):
3261-
r"""
3262-
Deprecated.
3263-
3264-
Use :meth:`riemannian_metric` instead.
3265-
3266-
EXAMPLES::
3267-
3268-
sage: M = Manifold(3, 'M')
3269-
sage: g = M.riemann_metric('g')
3270-
doctest:...: DeprecationWarning: Use riemannian_metric() instead.
3271-
See http://trac.sagemath.org/19209 for details.
3272-
sage: g
3273-
Riemannian metric g on the 3-dimensional differentiable manifold M
3274-
3275-
"""
3276-
from sage.misc.superseded import deprecation
3277-
deprecation(19209, 'Use riemannian_metric() instead.')
3278-
return self.riemannian_metric(name, latex_name=latex_name,
3279-
dest_map=dest_map)
3280-
32813235
def lorentzian_metric(self, name, signature='positive', latex_name=None,
32823236
dest_map=None):
32833237
r"""
@@ -3347,25 +3301,3 @@ class :class:`~sage.manifolds.differentiable.diff_map.DiffMap`
33473301
else:
33483302
signat = 2 - dim
33493303
return vmodule.metric(name, signature=signat, latex_name=latex_name)
3350-
3351-
def lorentz_metric(self, name, signature='positive', latex_name=None,
3352-
dest_map=None):
3353-
r"""
3354-
Deprecated.
3355-
3356-
Use :meth:`lorentzian_metric` instead.
3357-
3358-
EXAMPLES::
3359-
3360-
sage: M = Manifold(4, 'M')
3361-
sage: g = M.lorentz_metric('g')
3362-
doctest:...: DeprecationWarning: Use lorentzian_metric() instead.
3363-
See http://trac.sagemath.org/19209 for details.
3364-
sage: g
3365-
Lorentzian metric g on the 4-dimensional differentiable manifold M
3366-
3367-
"""
3368-
from sage.misc.superseded import deprecation
3369-
deprecation(19209, 'Use lorentzian_metric() instead.')
3370-
return self.lorentzian_metric(name, signature=signature,
3371-
latex_name=latex_name, dest_map=dest_map)

0 commit comments

Comments
 (0)