aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-09-26 14:04:26 -0600
committerTom Tromey <tromey@adacore.com>2023-09-28 14:56:05 -0600
commit860b284e3eea49e5bd49e6fe07c66e53faebb893 (patch)
tree638c1f328f5395d1777db35f24fc911bc07b8deb
parent33841921a2b1153e6d79f0b4a5870f12aa2e86a1 (diff)
downloadgcc-860b284e3eea49e5bd49e6fe07c66e53faebb893.zip
gcc-860b284e3eea49e5bd49e6fe07c66e53faebb893.tar.gz
gcc-860b284e3eea49e5bd49e6fe07c66e53faebb893.tar.bz2
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.
-rw-r--r--libstdc++-v3/python/libstdcxx/v6/printers.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index c5ecd88..e530cfc 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."""