Skip to content

Commit 61c5442

Browse files
wanda-phiwhitequark
authored andcommitted
hdl: remove Value.implies.
Fixes #1239.
1 parent f951b91 commit 61c5442

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

amaranth/hdl/_ast.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -994,11 +994,6 @@ def xor(self):
994994
"""
995995
return Operator("r^", [self])
996996

997-
# TODO(amaranth-0.6): remove
998-
@deprecated("`a.implies(b)` is deprecated, use `~a | b` instead")
999-
def implies(self, conclusion):
1000-
return ~self | conclusion
1001-
1002997
def __check_shamt(self):
1003998
if self.shape().signed:
1004999
# Neither Python nor HDLs implement shifts by negative values; prohibit any shifts
@@ -2481,7 +2476,6 @@ def __repr__(self):
24812476
any = _proxy_value("any")
24822477
all = _proxy_value("all")
24832478
xor = _proxy_value("xor")
2484-
implies = _proxy_value("implies")
24852479
__lshift__ = _proxy_value("__lshift__")
24862480
__rlshift__ = _proxy_value("__rlshift__")
24872481
__rshift__ = _proxy_value("__rshift__")

docs/changes.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ Language changes
2828

2929
.. currentmodule:: amaranth.hdl
3030

31-
* Removed (deprecated in 0.4): :class:`Record`.
32-
* Removed (deprecated in 0.5): public submodules of :mod:`amaranth.hdl`.
31+
* Removed: (deprecated in 0.4) :class:`Record`.
32+
* Removed: (deprecated in 0.5) public submodules of :mod:`amaranth.hdl`.
33+
* Removed: (deprecated in 0.5) :meth:`Value.implies`.
3334

3435

3536
Standard library changes

0 commit comments

Comments
 (0)