public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-8057] libstdc++: Remove std_ratio_t_tuple
@ 2023-11-13 15:45 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2023-11-13 15:45 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:988a013ecd60a643c671715cc0a38ffb31a6f565
commit r13-8057-g988a013ecd60a643c671715cc0a38ffb31a6f565
Author: Tom Tromey <tromey@adacore.com>
Date: Tue Sep 26 14:04:26 2023 -0600
libstdc++: Remove std_ratio_t_tuple
This removes the std_ratio_t_tuple function from the Python
pretty-printer code. It is not used. Apparently the relevant parts
were moved to StdChronoDurationPrinter._ratio at some point in the
past.
libstdc++-v3/ChangeLog:
* python/libstdcxx/v6/printers.py (std_ratio_t_tuple):
Remove.
(cherry picked from commit 860b284e3eea49e5bd49e6fe07c66e53faebb893)
Diff:
---
libstdc++-v3/python/libstdcxx/v6/printers.py | 8 --------
1 file changed, 8 deletions(-)
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index c5ecd881b73..e530cfc0e3a 100644
--- a/libstdc++-v3/python/libstdcxx/v6/printers.py
+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
@@ -2019,14 +2019,6 @@ class StdFormatArgsPrinter(printer_base):
return "%s with %d arguments" % (typ, size)
-def std_ratio_t_tuple(ratio_type):
- # TODO use reduced period i.e. duration::period
- period = self._val.type.template_argument(1)
- num = period.template_argument(0)
- den = period.template_argument(1)
- return (num, den)
-
-
class StdChronoDurationPrinter(printer_base):
"""Print a std::chrono::duration."""
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-13 15:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-13 15:45 [gcc r13-8057] libstdc++: Remove std_ratio_t_tuple Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).