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

Commit

Permalink
Remove deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Apr 1, 2017
1 parent 8725c63 commit 85c96f9
Show file tree
Hide file tree
Showing 39 changed files with 8 additions and 855 deletions.
7 changes: 0 additions & 7 deletions src/doc/en/reference/rings/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ Base Classes for Rings, Algebras and Fields
:maxdepth: 2

sage/rings/ring
sage/rings/commutative_ring
sage/rings/commutative_algebra
sage/rings/dedekind_domain
sage/rings/euclidean_domain
sage/rings/integral_domain
sage/rings/principal_ideal_domain

Ideals
------
Expand Down Expand Up @@ -61,6 +55,5 @@ Utilities
sage/rings/big_oh
sage/rings/infinity
sage/rings/numbers_abc
sage/rings/misc

.. include:: ../footer.txt
8 changes: 0 additions & 8 deletions src/module_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,14 +482,6 @@ def uname_specific(name, value, alternative):
sources = ['sage/groups/perm_gps/partn_ref2/refinement_generic.pyx'],
extra_compile_args=["-std=c99"]),

################################
##
## sage.gsl
##
################################

Extension('*', ['sage/gsl/*.pyx']),

################################
##
## sage.interacts
Expand Down
2 changes: 0 additions & 2 deletions src/sage/categories/category.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
from sage.misc.cachefunc import cached_method, cached_function
from sage.misc.c3_controlled import _cmp_key, _cmp_key_named, C3_sorted_merge
from sage.misc.lazy_attribute import lazy_attribute
from sage.misc.lazy_import import lazy_import
from sage.misc.unknown import Unknown
from sage.misc.weak_dict import WeakValueDictionary

Expand Down Expand Up @@ -2651,7 +2650,6 @@ def category_graph(categories = None):
g.add_edge([source._repr_object_names(), target._repr_object_names()])
return g

lazy_import('sage.categories.homsets', 'Homsets', 'HomCategory', deprecation=10668)

##############################################################################
# Parametrized categories whose parent/element class depend only on
Expand Down
15 changes: 0 additions & 15 deletions src/sage/combinat/integer_list.py

This file was deleted.

4 changes: 0 additions & 4 deletions src/sage/ext/interrupt.pxi

This file was deleted.

26 changes: 0 additions & 26 deletions src/sage/ext/python.pxi

This file was deleted.

30 changes: 0 additions & 30 deletions src/sage/gsl/callback.pyx

This file was deleted.

4 changes: 0 additions & 4 deletions src/sage/gsl/gsl.pxi

This file was deleted.

16 changes: 0 additions & 16 deletions src/sage/libs/cremona/all.py

This file was deleted.

16 changes: 0 additions & 16 deletions src/sage/libs/cremona/constructor.py

This file was deleted.

16 changes: 0 additions & 16 deletions src/sage/libs/cremona/homspace.py

This file was deleted.

17 changes: 0 additions & 17 deletions src/sage/libs/cremona/newforms.py

This file was deleted.

14 changes: 0 additions & 14 deletions src/sage/libs/mwrank/interface.py

This file was deleted.

16 changes: 0 additions & 16 deletions src/sage/libs/mwrank/mwrank.py

This file was deleted.

2 changes: 0 additions & 2 deletions src/sage/libs/ntl/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
polynomials and asymptotically fast factorization of polynomials.
"""

__doc_exclude = [] # to include everything

#*****************************************************************************
# Copyright (C) 2005 William Stein <[email protected]>
#
Expand Down
6 changes: 1 addition & 5 deletions src/sage/misc/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
from .lazy_attribute import lazy_attribute, lazy_class_attribute
from .lazy_import import lazy_import

from .misc import (alarm, cancel_alarm,
ellipsis_range, ellipsis_iter, xsrange, sxrange,
BackslashOperator, getitem,
from .misc import (BackslashOperator, getitem,
cputime, verbose, set_verbose, set_verbose_files,
get_verbose_files, unset_verbose_files, get_verbose,
union, uniq, powerset, subsets,
Expand All @@ -16,8 +14,6 @@
newton_method_sizes, compose,
self_compose, nest)

lazy_import('sage.arith.srange', 'srange', deprecation=20334)

from .banner import version, banner

from .temporary_file import tmp_dir, tmp_filename
Expand Down
32 changes: 0 additions & 32 deletions src/sage/misc/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,6 @@
False
sage: 'func' in globals()
False
Test deprecation::
sage: sage.misc.misc.srange(5)
doctest:...: DeprecationWarning:
Importing srange from here is deprecated. If you need to use it, please import it directly from sage.arith.srange
See http://trac.sagemath.org/20094 for details.
[0, 1, 2, 3, 4]
sage: sage.misc.all.srange(5)
doctest:...: DeprecationWarning:
Importing srange from here is deprecated. If you need to use it, please import it directly from sage.arith.srange
See http://trac.sagemath.org/20334 for details.
[0, 1, 2, 3, 4]
sage: sage.misc.misc.sxrange(5)
doctest:...: DeprecationWarning:
Importing sxrange from here is deprecated. If you need to use it, please import it directly from sage.arith.srange
See http://trac.sagemath.org/20094 for details.
<generator object at 0x...>
sage: sage.misc.misc.cancel_alarm()
doctest:...: DeprecationWarning:
Importing cancel_alarm from here is deprecated. If you need to use it, please import it directly from cysignals.alarm
See http://trac.sagemath.org/20002 for details.
"""

#*****************************************************************************
Expand All @@ -62,11 +40,6 @@
from __future__ import print_function, absolute_import
from six.moves import range

__doc_exclude=["cached_attribute", "cached_class_attribute", "lazy_prop",
"generic_cmp", "to_gmp_hex", "todo",
"typecheck", "prop", "strunc",
"assert_attribute", "LOGFILE"]

from warnings import warn
import os
import stat
Expand All @@ -76,11 +49,6 @@
import sage.misc.prandom as random
from .lazy_string import lazy_string

from sage.misc.lazy_import import lazy_import
lazy_import('sage.arith.srange', ('xsrange', 'srange', 'ellipsis_range', 'ellipsis_iter'), deprecation=20094)
lazy_import('sage.arith.srange', 'xsrange', 'sxrange', deprecation=20094)
lazy_import('cysignals.alarm', ('alarm', 'cancel_alarm'), deprecation=20002)


from sage.env import DOT_SAGE, HOSTNAME

Expand Down
2 changes: 0 additions & 2 deletions src/sage/modular/buzzard.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
# http://www.gnu.org/licenses/
#############################################################################

__doc_exclude = ['gp', '_gp', 'Gp', 'Integer', 'sage_eval']

from sage.interfaces.gp import Gp
from sage.misc.all import sage_eval

Expand Down
24 changes: 7 additions & 17 deletions src/sage/modular/modsym/boundary.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,31 +77,21 @@
- Stein, "Modular Forms, a computational approach." AMS (2007).
"""
from __future__ import absolute_import

#*****************************************************************************
# Sage: System for Algebra and Geometry Experimentation
#
# Copyright (C) 2005 William Stein <[email protected]>
#
# Distributed under the terms of the GNU General Public License (GPL)
#
# This code is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# The full text of the GPL is available at:
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
# http://www.gnu.org/licenses/
#*****************************************************************************
from six.moves import range
__doc_exclude = ['repr_lincomb', 'QQ']

# Python imports
from __future__ import absolute_import
from six.moves import range

# Sage imports
from sage.misc.misc import repr_lincomb
from sage.misc.misc import repr_lincomb

import sage.modules.free_module as free_module
from sage.modules.free_module_element import is_FreeModuleElement
Expand Down
2 changes: 0 additions & 2 deletions src/sage/rings/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@
CC = ComplexField()
CIF = ComplexIntervalField()

from .misc import composite_field

from sage.misc.lazy_import import lazy_import
lazy_import('sage.rings.invariant_theory', 'invariant_theory')
lazy_import('sage.arith.all', '*', deprecation=19879)
Expand Down
23 changes: 0 additions & 23 deletions src/sage/rings/commutative_algebra_element.py

This file was deleted.

Loading

0 comments on commit 85c96f9

Please sign in to comment.