public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Tom Tromey <tromey@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc r14-4322] libstdc++: Remove std_ratio_t_tuple
Date: Thu, 28 Sep 2023 20:56:48 +0000 (GMT)	[thread overview]
Message-ID: <20230928205648.757E7386192A@sourceware.org> (raw)

https://gcc.gnu.org/g:860b284e3eea49e5bd49e6fe07c66e53faebb893

commit r14-4322-g860b284e3eea49e5bd49e6fe07c66e53faebb893
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.

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."""

                 reply	other threads:[~2023-09-28 20:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230928205648.757E7386192A@sourceware.org \
    --to=tromey@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    --cc=libstdc++-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).