Skip to content

Commit 6435352

Browse files
author
Release Manager
committed
gh-40656: remove deprecated method in matroid.pyx This was deprecated in #36394 ### 📝 Checklist - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. URL: #40656 Reported by: Frédéric Chapoton Reviewer(s): David Coudert
2 parents 1910086 + 99824db commit 6435352

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

src/sage/matroids/matroid.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ cdef class Matroid(SageObject):
148148
cpdef minor(self, contractions=*, deletions=*)
149149
cpdef contract(self, X)
150150
cpdef delete(self, X)
151-
cpdef _backslash_(self, X)
152151
cpdef dual(self)
153152
cpdef truncation(self)
154153
cpdef has_minor(self, N, bint certificate=*)

src/sage/matroids/matroid.pyx

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ from itertools import combinations, product
348348
from sage.matrix.constructor import matrix
349349
from sage.misc.lazy_import import LazyImport
350350
from sage.misc.prandom import shuffle
351-
from sage.misc.superseded import deprecation, deprecated_function_alias
351+
from sage.misc.superseded import deprecated_function_alias
352352
from sage.rings.integer_ring import ZZ
353353
from sage.structure.richcmp cimport rich_to_bool, richcmp
354354
from sage.structure.sage_object cimport SageObject
@@ -4217,9 +4217,6 @@ cdef class Matroid(SageObject):
42174217
one. It can be shown that the resulting matroid does not depend on the
42184218
order of the deletions.
42194219
4220-
DEPRECATED: Sage supports the shortcut notation ``M \ X`` for
4221-
``M.delete(X)``.
4222-
42234220
INPUT:
42244221
42254222
- ``X`` -- either a single element of the groundset, or a collection
@@ -4268,23 +4265,6 @@ cdef class Matroid(SageObject):
42684265
"""
42694266
return self.minor(deletions=X)
42704267

4271-
cpdef _backslash_(self, X):
4272-
r"""
4273-
Shorthand for ``self.delete(X)``.
4274-
4275-
Deprecated.
4276-
4277-
EXAMPLES::
4278-
4279-
sage: M = matroids.CompleteGraphic(4) # needs sage.graphs
4280-
sage: M.delete(1) == M \ 1 # indirect doctest # needs sage.graphs
4281-
doctest:...: DeprecationWarning: the backslash operator has been deprecated; use M.delete(X) instead
4282-
See https://github.com/sagemath/sage/issues/36394 for details.
4283-
True
4284-
"""
4285-
deprecation(36394, 'the backslash operator has been deprecated; use M.delete(X) instead')
4286-
return self.delete(X)
4287-
42884268
cpdef dual(self):
42894269
r"""
42904270
Return the dual of the matroid.

0 commit comments

Comments
 (0)