Skip to content

Commit

Permalink
sagemathgh-37870: sage.ext: Remove deprecated code
Browse files Browse the repository at this point in the history
    
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->

Deprecated in
- sagemath#31591 (2021)
- sagemath#32234 (2021)

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#37870
Reported by: Matthias Köppe
Reviewer(s): Michael Orlitzky
  • Loading branch information
Release Manager committed Apr 28, 2024
2 parents 0b2a719 + 0bce784 commit f607ee4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 337 deletions.
18 changes: 6 additions & 12 deletions src/sage/ext/fast_eval.pyx
Expand Up @@ -31,20 +31,20 @@ AUTHORS:
from sage.ext.fast_callable import fast_callable, Wrapper


def fast_float(f, *vars, old=None, expect_one_var=False):
def fast_float(f, *vars, expect_one_var=False):
"""
Tries to create a function that evaluates f quickly using
floating-point numbers, if possible. There are two implementations
of fast_float in Sage; by default we use the newer, which is
slightly faster on most tests.
Try to create a function that evaluates f quickly using
floating-point numbers, if possible.
On failure, returns the input unchanged.
This is an alternative interface to :func:`sage.ext.fast_callable.fast_callable`.
:issue:`32268` proposes to deprecate this function.
INPUT:
- ``f`` -- an expression
- ``vars`` -- the names of the arguments
- ``old`` -- deprecated, do not use
- ``expect_one_var`` -- don't give deprecation warning if ``vars`` is
omitted, as long as expression has only one var
Expand All @@ -67,12 +67,6 @@ def fast_float(f, *vars, old=None, expect_one_var=False):
sage: f(1,2)
1.0
"""
if old:
raise ValueError("the old implementation of fast_float has been removed")
if old is not None:
from sage.misc.superseded import deprecation
deprecation(32234, "passing old=False to fast_float is deprecated")

if isinstance(f, (tuple, list)):
return tuple([fast_float(x, *vars, expect_one_var=expect_one_var) for x in f])

Expand Down
145 changes: 0 additions & 145 deletions src/sage/ext/memory_allocator.pxd

This file was deleted.

180 changes: 0 additions & 180 deletions src/sage/ext/memory_allocator.pyx

This file was deleted.

0 comments on commit f607ee4

Please sign in to comment.